Skip to content

JSON support #12

@sergej-singer

Description

@sergej-singer

Sometimes it's needed to load lists of data into the maps across profiles, e.g. VFR waypoints across Radar and Tower profiles. Support of JSON files would bring a lot of flexibility. Here's an example:

{ "VFR": {
    "EDDF": [
        {"name": "L", "text_align": "LB"},
        {"name": "N", "text_align": "LB"},
        {"name": "S", "text_align": "LB"},
        {"name": "R1", "text_align": "LB"}
    ],
    "EDFE": [
        {"name": "Y", "text_align": "LB"},
        {"name": "D", "text_align": "LB"},
        {"name": "E", "text_align": "LB"},
        {"name": "T", "text_align": "LB"},
        {"name": "K", "text_align": "LB"}
    ],
    "EDDL": [
        {"name": "N", "text_align": "LB"},
        {"name": "S", "text_align": "LB"},
        {"name": "E", "text_align": "LB"}
    ],
    "EDDK": [
        {"name": "K1", "text_align": "LB"},
        {"name": "K2", "text_align": "LB"},
        {"name": "S1", "text_align": "LB"},
        {"name": "S2", "text_align": "LB"},
        {"name": "E1", "text_align": "LB"},
        {"name": "E2", "text_align": "LB"},
        {"name": "N1", "text_align": "LB"},
        {"name": "N2", "text_align": "LB"}
    ]
}
}
MAP:VFR Points
FOLDER:ALL
COLOR:standard
ACTIVE:1
{%- for icao, fxnames in data.reporting_points['VFR'].items() %}
// {{icao}}
{%- for fx in fxnames %}
SYMBOL:VFR:{{icao | replace('ED', '')}}-{{fx['name']}}
{%- endfor %}
{%- endfor %}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions