Skip to main content

Map data sources

Last updated: October 13, 2026 | 17 minutes read

For developers: which map data each sourcedata_id number draws, for every layer type. You need this only to write or check a style file by hand or with an AI. In Studio, Available Layers sets the numbers for you.

How a layer finds its data​

A layer draws map data through two fields together: its type and its sourcedata_id. The number alone does not name the data. The same number means different things in different layer types:

typesourcedata_idDraws
polygon0Land
line0Motorway
symbol0Metropolis (over 500k) labels

The numbers come in families:

  • Roads. line (the road), street (its name), linkarrows (one-way arrows) and roadshield (route number shields) share one numbering: 0 is Motorway in all four.
  • Areas. polygon and polyline share one numbering, and no number is used by both. areaname labels an area with the area's own number: 9 is Water as a polygon and Lake Name as an areaname.
  • Places and points. symbol has its own numbering: city labels, POIs, house numbers.
  • The rest. buildings, country, raster, hillshade, elevation, wind, background and atmosphere each draw one kind of data.

A layer takes one sourcedata_id, so each class needs its own layer: motorways and trunk roads are two layers.

All the map data on this page uses "source": "map" unless a table says otherwise.

A water layer, shortened from the Basic 1 template:

{
"COMMENT": "Water",
"id": 37,
"type": "polygon",
"source": "map",
"sourcedata_id": 9,
"minzoom": 0,
"paint": {
"fill-color": {
"color_stops": {
"color_stop": [{ "level_id": 0, "color": 4294957738 }],
"easing_type": 1
}
}
}
}

Where these numbers come from​

Every number on this page is used by at least one of Magic Lane's 40 official templates, the ones the portal offers when you create a style. Typical zoom says at which zoom levels the templates show the layer. The map has zoom levels 0 to 17: 0 shows the whole world, 17 a few streets. 4–17 means the layer appears once you zoom in to level 4 and stays visible all the way in to 17; zoomed out further than 4, it is hidden. This is the minzoom and maxzoom most templates give the layer; a range ending in 17 includes layers with no maxzoom. Templates says how many of the 40 use the number.

The map data may hold classes that no template draws. A number that is not on this page may draw nothing.

Roads​

Each road class can be drawn by four layer types: the road itself, its name, its one-way arrows and its route number shield (such as A1). All four use the same number. Each cell gives the typical zoom at which the templates show it; — means no official template draws it.

For example, the Motorway row says: the motorway line appears from zoom 4, its name from zoom 11, its one-way arrows from zoom 14 and its shields from zoom 5.

sourcedata_idRoad classRoad line (line)Name (street)One-way arrows (linkarrows)Shield (roadshield)
0Motorway4–1711–1714–175–17
1Trunk4–1711–1714–178–17
2Primary4–1711–1713–178–17
3Secondary4–1711–1714–179–17
4Tertiary4–1711–1714–1710–17
5Unclassified11–1712–1714–1710–17
6Residential11–1713–1714–17—
7Service13–1713–1714–17—
8Motorway Link8–1711–1714–17—
9Trunk Link10–1713–1714–17—
10Primary Link10–1713–1714–17—
11Secondary Link11–1713–1714–17—
12Tertiary Link11–1713–1714–17—
13Living Street11–1713–1714–17—
14Pedestrian13–1713–1714–17—
15Track12–1713–1714–17—
16Bus Guideway12–1713–1714–17—
17Raceway14–1714–1714–17—
18Road12–1713–1714–17—
19Footway12–1714–1714–17—
20Cycleway14–1714–1714–17—
21Bridleway14–1714–1714–17—
22Steps13–1713–1717–17—
23Path14–1714–1714–17—
24Unpaved11–1713–1714–17—
25Ferry6–1712–1714–17—
26Train-Ferry11–1714–1714–17—
27Construction14–1713–1714–17—

Areas (polygon)​

Filled areas. Numbers 96 to 114 are road and path surfaces drawn as areas.

Order matters where areas overlap. The official templates put, from top to bottom: lakes and rivers (Water, 9) above the parks and other land-use areas, then Island (1), Water Sea (94) and Land (0) at the bottom, just above the background. They give the background the water colour.

sourcedata_idDrawsTypical zoomTemplates
0Land0–1730
1Island0–1724
2Wood3–1714
3Built-up / Urban Areas0–174
4Industry8–174
5Airport4–1726
6Green0–178
9Water0–1730
23Green Park8–1730
25Parking11–1712
26Gas Station11–174
27Cemetery8–1728
28Marketplace11–158
29Fountain0–1730
30Transport Station11–174
31Pedestrian10–176
32Trailer Park8–174
33Farm4–176
34Public Square11–174
35Campground11–174
36Bridge0–1720
39Snow4–178
42Archaeological Site11–174
43Sand4–1724
44Wetland0–176
45Ice4–174
46Fence11–174
48Yard11–178
49Rock3–1714
51Harbour0–1730
53Playground11–1720
54Sports Pitch4–1728
55Commons4–176
56Brownfield8–174
57Vineyard4–176
58Forest0–1714
59Military8–174
60Heathland0–178
61Apron8–178
62Runway8–1724
64Terminal4–1724
66Quarry11–174
67Zoo8–174
69Track Polygon11–174
70Allotments11–174
71Power Station11–174
73School / University11–1722
74Rest Area11–174
76Beach4–1726
77Desert4–178
78Glacier4–1724
79Mud8–174
80Farmyard8–174
81Garages0–178
82Grassland4–176
84Hospital9–1724
85Theme Park11–174
91Platform11–174
94Water Sea0–1730
96Motorway Area4–176
97Trunk Area4–176
98Primary Area4–176
99Secondary Area6–176
100Tertiary Area6–176
101Unclassified Area9–176
102Residential Area11–172
103Service Area11–172
104Living Street Area11–172
105Pedestrian Area11–172
106Track Area11–172
107Bus Guideway Area9–176
108Raceway Area11–176
109Road Area11–172
110Footway Area11–172
111Cycleway Area11–172
112Bridleway Area11–172
113Path Area11–172
114Unpaved Area11–172

Lines that are not roads (polyline)​

Borders, rail, water lines and other outlines. Some templates draw a border twice with the same number: a background line underneath and the border on top.

sourcedata_idDrawsTypical zoomTemplates
8Airplane Road8–1724
10Water Line0–174
11Rail9–1724
12State Park4–1720
13Disputed Border0–1733
14Country Border0–1733
17State Border3–1733
37Track5–178
38Wall11–174
40Dam8–174
47Aerialway10–178
50Subway Bridge11–1714
52Slide8–174
63Runway Line8–1724
65Harbour Line8–174
72Power Line0–174
83Harbour Outline12–174
86Narrow Water Line7–1730
88Subway11–1714
93Thick Wall11–174

Area labels (areaname)​

The name of an area, with the area's own number. 10 and 86 label the water lines drawn by polyline 10 and 86.

sourcedata_idDrawsTypical zoomTemplates
1Island Label5–1523
4Industry Label12–174
5Airport Label8–1728
9Lake Name9–1734
10Water Line Label12–1734
12State Park Label7–178
23Green Park Label9–1712
27Cemetery Label13–174
33Farm Label9–174
58Forest Label9–174
76Beach Label13–174
86Narrow Water Line Label12–1734
94Water Sea Name2–1734

Places and points (symbol)​

33024 and 3076010 come from the overlay source; the rest from map.

sourcedata_idDrawssourceTypical zoomTemplates
0Metropolis (Over 500k)map3–1335
1Large City (100k-500k)map4–1335
2City (50k-100k)map5–1335
3City (10k-50k)map6–1335
4City (5k-10k)map7–1334
5Small City (1k-5k)map6–1334
6Small City (500-1k)map10–1334
7Village / Hamlet (0-500)map10–1334
9Exit Namesmap14–1719
12POIs, one layer per category (see Points of interest)map16–1734
14House Numbersmap16–174
15State Namemap4–731
33024Safety Camerasoverlay13–1738
3076010Public Transit Stopsoverlay14–1734

Other layer types​

typesourcedata_idsourceDrawsTypical zoomTemplates
country0mapCountry Labels0–735
buildings3mapBuilt Up (buildings)14–1730
raster5satellite, satelliteExternalSatellite0–179
hillshade13elevationHillshade0–613
elevation13elevationElevation7–1713
wind11weatherWind3–151
background0leave outBackground0–1739
atmosphere0leave outAtmosphere0–1738

background must be the last layer in definition.layers, so it is drawn under everything else. A satelliteExternal raster layer also needs its source declared in sources_list; see the style file format.

Contour lines use "source": "contourpolyline", with type contour_polyline for the lines and contour_label for their labels, and contour_interval for the interval between lines. No official template draws them.

Points of interest​

POIs are symbol layers on sourcedata_id 12. Most templates draw them as one layer per category, each with the category in metaCategoryID; the map engine draws the category's own icon. The other templates have a single POI layer with no metaCategoryID.

metaCategoryIDCategoryTemplates
1000Gas Stations21
1001Parking21
1002Food and Drink21
1003Accommodation21
1004Medical Services21
1005Shopping21
1006Auto Service21
1007Transport21
1008Wikipedia21
1009Education21
1010Entertainment21
1011Public Services20
1012Geographical Areas21
1013Business20
1014Sightseeing21
1015Religious Places21
1016Roadside21
1017Sports21
1018NOC21
1019Fire Hydrant21
1020Emergency Services21
1021Civil Emergency Infrastructure21
1022Charging Stations12
1023Bicycle Charging Stations12
1024Bicycle Parking12

These are the categories the official templates use. Studio's POI Category field lists the categories the map engine offers.

Fields you can filter on​

A layer's filter (the Data Filter tab in Studio) compares the fields below, which the map engine fills in for each kind of map data.

Layer typesFields
line (roads), street (road names)Class, Lanes count, Country ISO Code, Name
linkarrows (one-way arrows)Class, Country ISO Code, Name
symbol (city labels)Name, Is Capital, Is Federal State, Is Region Capital, Country ISO code
polygon, polyline, areanameGeometry Type (Line or Polygon), Name
buildingsHeight
Your own data ("source": "overlay")the features' own properties, and Geometry Type (point, line or polygon)
  • Class holds a road's flags: any of Bridge, Construction, Oneway, Tollway, Tunnel and Roundabout. Use in, for example { "key": "Class", "condition": "in", "values": ["Tunnel"] }.
  • Is Capital and the other "Is" fields hold Yes or No.
  • Lanes count and Height are numbers. >, <, >= and <= compare whole numbers and work only on these two fields; on any other field, including every property of your own data, they let every feature through.
  • Comparisons of text ignore upper and lower case, except in and notin on Class.

Layers with no sourcedata_id​

These layers draw what an app adds at run time, not map data, and carry "isTemplate": 1: routes (route_car_primary and the other route_ types), route labels (route_label_ types), the travelled route (traveled_route_ types), turn_arrow, route_traffic, route_waypoints, traffic_links, traffic_icons, highlighted_lmks, lmk_store, social_reports, and the In-App Drawing types draw_points, draw_poly, drawpath and paths. Their properties are in the layer types reference.

Your own data sources​

A layer that draws one of your data sources uses "source": "overlay" and the source's tileset id as its sourcedata_id. Once the source is tiled, the id is on the layer's JSON tab as sourceDataId. The layer's type is symbol, symbol group, polyline or polygon.

See also: Style file format · Layer types reference