Jump to content

Template:Airline route map by airline: Difference between revisions

From OpenGeofiction
only show the outbound legs
+CyclOGF
 
Line 1: Line 1:
<includeonly>{{#multimaps:
<includeonly>{{#multimaps:
| center = {{{lat}}},{{{lon}}} | width = 100% | height = {{{height|500}}}px | zoom = {{{z|2}}} | minzoom = {{{min|2}}} | maxzoom = {{{max|10}}}
| center = {{{lat}}},{{{lon}}} | width = 100% | height = {{{height|500}}}px | zoom = {{{z|2}}} | minzoom = {{{min|2}}} | maxzoom = {{{max|10}}}
| layers = +Standard,TopoMap,OpenStreetMap
| layers = +Standard,TopoMap,CyclOGF,OpenStreetMap
| overlays = +Routes
| overlays = +Routes
| overlaydef = {"Routes": [{"url":"https://data.opengeofiction.net/utility/airline_routes.json", "filter": {"airline_code": "{{{id}}}", "return": 0} } ]}
| overlaydef = {"Routes": [{"url":"https://data.opengeofiction.net/utility/airline_routes.json", "filter": {"airline_code": "{{{id}}}", "return": 0} } ]}

Latest revision as of 11:28, 8 November 2025

This template is designed as an easy to use MultiMap to highlight all routes flown by a specified airline. The syntax of this template is as follows:

{{airline route map by airline
|lat=     (required)
|lon=     (required)
|height=  (customisable size in pixels; default is 500)
|z=       (map zoom level; default is 3)
|min=     (minimum zoom level; default is 2)
|max=     (maximum zoom level; default is 10)
|id=      (airline 2 character ref code; required)
}}

Example

For FR FreedemiAir:

{{airline route map by airline|lat=-20.0|lon=90.0|id=FR}}

Loading map...