Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bertrandmd/0b078e4aeb81b52e71d6653299fded8d to your computer and use it in GitHub Desktop.
Save bertrandmd/0b078e4aeb81b52e71d6653299fded8d to your computer and use it in GitHub Desktop.
{
"version": 8,
"name": "OSM Liberty",
"metadata": {
"maputnik:license": "https://github.com/maputnik/osm-liberty/blob/gh-pages/LICENSE.md",
"maputnik:renderer": "mbgljs",
"openmaptiles:version": "3.x"
},
"sources": {
"openmaptiles": {
"type": "vector",
"url": "https://api.maptiler.com/tiles/v3/tiles.json?key=ZeIPmGXK4TQzM3lgloCz"
}
},
"sprite": "https://maputnik.github.io/osm-liberty/sprites/osm-liberty",
"glyphs": "https://api.maptiler.com/fonts/{fontstack}/{range}.pbf?key=ZeIPmGXK4TQzM3lgloCz",
"layers": [
{
"id": "background",
"type": "background",
"paint": {"background-color": "rgba(251, 244, 239, 1)"}
},
{
"id": "park",
"type": "fill",
"source": "openmaptiles",
"source-layer": "park",
"minzoom": 4,
"layout": {"visibility": "visible"},
"paint": {"fill-color": "rgba(187, 224, 148, 0.6)"}
},
{
"id": "park_outline",
"type": "line",
"source": "openmaptiles",
"source-layer": "park",
"layout": {"visibility": "none"},
"paint": {
"line-dasharray": [1, 1.5],
"line-color": "rgba(228, 241, 215, 1)"
}
},
{
"id": "landuse_residential",
"type": "fill",
"source": "openmaptiles",
"source-layer": "landuse",
"maxzoom": 8,
"filter": ["==", "class", "residential"],
"layout": {"visibility": "none"},
"paint": {
"fill-color": {
"base": 1,
"stops": [
[9, "hsla(0, 3%, 85%, 0.84)"],
[12, "hsla(35, 57%, 88%, 0.49)"]
]
}
}
},
{
"id": "landcover_wood",
"type": "fill",
"source": "openmaptiles",
"source-layer": "landcover",
"minzoom": 4,
"filter": ["all", ["==", "class", "wood"]],
"paint": {
"fill-antialias": false,
"fill-color": "rgba(187, 224, 148, 0.6)",
"fill-opacity": 1
}
},
{
"id": "landcover_grass",
"type": "fill",
"source": "openmaptiles",
"source-layer": "landcover",
"minzoom": 4,
"filter": ["all", ["==", "class", "grass"]],
"layout": {"visibility": "visible"},
"paint": {
"fill-antialias": false,
"fill-color": "rgba(187, 224, 148, 0.6)",
"fill-opacity": 1
}
},
{
"id": "landcover_sand",
"type": "fill",
"source": "openmaptiles",
"source-layer": "landcover",
"filter": ["all", ["==", "class", "sand"]],
"paint": {"fill-color": "rgba(247, 239, 195, 1)"}
},
{
"id": "landcover_ice",
"type": "fill",
"source": "openmaptiles",
"source-layer": "landcover",
"filter": ["all", ["==", "class", "ice"]],
"layout": {"visibility": "none"},
"paint": {
"fill-antialias": false,
"fill-color": "rgba(224, 236, 236, 1)",
"fill-opacity": 0.8
}
},
{
"id": "landuse_cemetery",
"type": "fill",
"source": "openmaptiles",
"source-layer": "landuse",
"filter": ["==", "class", "cemetery"],
"paint": {"fill-color": "rgba(234, 227, 212, 1)"}
},
{
"id": "landuse_hospital",
"type": "fill",
"source": "openmaptiles",
"source-layer": "landuse",
"filter": ["==", "class", "hospital"],
"paint": {"fill-color": "rgba(255, 243, 225, 0.8)"}
},
{
"id": "landuse_school",
"type": "fill",
"source": "openmaptiles",
"source-layer": "landuse",
"filter": ["==", "class", "school"],
"paint": {"fill-color": "rgba(255, 243, 225, 0.8)"}
},
{
"id": "waterway_tunnel",
"type": "line",
"source": "openmaptiles",
"source-layer": "waterway",
"filter": ["all", ["==", "brunnel", "tunnel"]],
"paint": {
"line-color": "#a0c8f0",
"line-dasharray": [3, 3],
"line-gap-width": {"stops": [[12, 0], [20, 6]]},
"line-opacity": 1,
"line-width": {"base": 1.4, "stops": [[8, 1], [20, 2]]}
}
},
{
"id": "waterway_river",
"type": "line",
"source": "openmaptiles",
"source-layer": "waterway",
"minzoom": 10,
"filter": ["all", ["==", "class", "river"], ["!=", "brunnel", "tunnel"]],
"layout": {"line-cap": "round"},
"paint": {
"line-color": "rgba(142, 194, 255, 1)",
"line-width": {"base": 1.2, "stops": [[11, 0.5], [20, 6]]}
}
},
{
"id": "waterway_other",
"type": "line",
"source": "openmaptiles",
"source-layer": "waterway",
"minzoom": 11,
"filter": ["all", ["!=", "class", "river"], ["!=", "brunnel", "tunnel"]],
"layout": {"line-cap": "round"},
"paint": {
"line-color": "rgba(142, 194, 255, 1)",
"line-width": {"base": 1.3, "stops": [[11, 0.5], [20, 6]]}
}
},
{
"id": "water",
"type": "fill",
"source": "openmaptiles",
"source-layer": "water",
"filter": ["all", ["!=", "brunnel", "tunnel"]],
"paint": {"fill-color": "rgba(142, 194, 255, 1)"}
},
{
"id": "aeroway_fill",
"type": "fill",
"source": "openmaptiles",
"source-layer": "aeroway",
"minzoom": 11,
"filter": ["==", "$type", "Polygon"],
"paint": {"fill-color": "rgba(229, 228, 224, 1)", "fill-opacity": 0.7}
},
{
"id": "aeroway_runway",
"type": "line",
"source": "openmaptiles",
"source-layer": "aeroway",
"minzoom": 11,
"filter": [
"all",
["==", "$type", "LineString"],
["==", "class", "runway"]
],
"paint": {
"line-color": "#f0ede9",
"line-width": {"base": 1.2, "stops": [[11, 3], [20, 16]]}
}
},
{
"id": "aeroway_taxiway",
"type": "line",
"source": "openmaptiles",
"source-layer": "aeroway",
"minzoom": 11,
"filter": [
"all",
["==", "$type", "LineString"],
["==", "class", "taxiway"]
],
"paint": {
"line-color": "#f0ede9",
"line-width": {"base": 1.2, "stops": [[11, 0.5], [20, 6]]}
}
},
{
"id": "tunnel_motorway_link_casing",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": [
"all",
["==", "class", "motorway"],
["==", "ramp", 1],
["==", "brunnel", "tunnel"]
],
"layout": {"line-join": "round", "visibility": "none"},
"paint": {
"line-color": "#e9ac77",
"line-dasharray": [0.5, 0.25],
"line-width": {
"base": 1.2,
"stops": [[12, 1], [13, 3], [14, 4], [20, 15]]
}
}
},
{
"id": "tunnel_service_track_casing",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": [
"all",
["==", "brunnel", "tunnel"],
["in", "class", "service", "track"]
],
"layout": {"line-join": "round", "visibility": "none"},
"paint": {
"line-color": "#cfcdca",
"line-dasharray": [0.5, 0.25],
"line-width": {"base": 1.2, "stops": [[15, 1], [16, 4], [20, 11]]}
}
},
{
"id": "tunnel_link_casing",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": ["all", ["==", "ramp", 1], ["==", "brunnel", "tunnel"]],
"layout": {"line-join": "round", "visibility": "none"},
"paint": {
"line-color": "#e9ac77",
"line-width": {
"base": 1.2,
"stops": [[12, 1], [13, 3], [14, 4], [20, 15]]
}
}
},
{
"id": "tunnel_street_casing",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": [
"all",
["==", "brunnel", "tunnel"],
["in", "class", "street", "street_limited"]
],
"layout": {"line-join": "round", "visibility": "none"},
"paint": {
"line-color": "#cfcdca",
"line-opacity": {"stops": [[12, 0], [12.5, 1]]},
"line-width": {
"base": 1.2,
"stops": [[12, 0.5], [13, 1], [14, 4], [20, 15]]
}
}
},
{
"id": "tunnel_secondary_tertiary_casing",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": [
"all",
["==", "brunnel", "tunnel"],
["in", "class", "secondary", "tertiary"]
],
"layout": {"line-join": "round", "visibility": "none"},
"paint": {
"line-color": "#e9ac77",
"line-width": {"base": 1.2, "stops": [[8, 1.5], [20, 17]]}
}
},
{
"id": "tunnel_trunk_primary_casing",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": [
"all",
["==", "brunnel", "tunnel"],
["in", "class", "primary", "trunk"]
],
"layout": {"line-join": "round", "visibility": "none"},
"paint": {
"line-color": "#e9ac77",
"line-width": {
"base": 1.2,
"stops": [[5, 0.4], [6, 0.7], [7, 1.75], [20, 22]]
}
}
},
{
"id": "tunnel_motorway_casing",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": [
"all",
["==", "class", "motorway"],
["!=", "ramp", 1],
["==", "brunnel", "tunnel"]
],
"layout": {"line-join": "round", "visibility": "none"},
"paint": {
"line-color": "#e9ac77",
"line-dasharray": [0.5, 0.25],
"line-width": {
"base": 1.2,
"stops": [[5, 0.4], [6, 0.7], [7, 1.75], [20, 22]]
}
}
},
{
"id": "tunnel_path_pedestrian",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": [
"all",
["==", "$type", "LineString"],
["==", "brunnel", "tunnel"],
["in", "class", "path", "pedestrian"]
],
"paint": {
"line-color": "#efefef",
"line-dasharray": [0.36, 0.18],
"line-width": {"base": 1.2, "stops": [[4, 0.25], [20, 30]]}
}
},
{
"id": "tunnel_motorway_link",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": [
"all",
["==", "class", "motorway"],
["==", "ramp", 1],
["==", "brunnel", "tunnel"]
],
"layout": {"line-join": "miter"},
"paint": {
"line-color": "#efefef",
"line-width": {"base": 1.2, "stops": [[4, 0.25], [20, 30]]},
"line-dasharray": [0.36, 0.18]
}
},
{
"id": "tunnel_service_track",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": [
"all",
["==", "brunnel", "tunnel"],
["in", "class", "service", "track"]
],
"layout": {"line-join": "miter"},
"paint": {
"line-color": "#efefef",
"line-width": {"base": 1.2, "stops": [[4, 0.25], [20, 30]]},
"line-dasharray": [0.36, 0.18]
}
},
{
"id": "tunnel_link",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": ["all", ["==", "ramp", 1], ["==", "brunnel", "tunnel"]],
"layout": {"line-join": "miter"},
"paint": {
"line-color": "#efefef",
"line-width": {"base": 1.2, "stops": [[4, 0.25], [20, 30]]},
"line-dasharray": [0.36, 0.18]
}
},
{
"id": "tunnel_minor",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": ["all", ["==", "brunnel", "tunnel"], ["in", "class", "minor"]],
"layout": {"line-join": "miter"},
"paint": {
"line-color": "#efefef",
"line-width": {"base": 1.2, "stops": [[4, 0.5], [20, 30]]},
"line-dasharray": [0.36, 0.18]
}
},
{
"id": "tunnel_secondary_tertiary",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": [
"all",
["==", "brunnel", "tunnel"],
["in", "class", "secondary", "tertiary"]
],
"layout": {"line-join": "miter"},
"paint": {
"line-color": "#fff",
"line-width": {"base": 1.2, "stops": [[6, 0.5], [20, 30]]},
"line-dasharray": [0.28, 0.14]
}
},
{
"id": "tunnel_trunk_primary",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": [
"all",
["==", "brunnel", "tunnel"],
["in", "class", "primary", "trunk"]
],
"layout": {"line-join": "miter"},
"paint": {
"line-color": "#fff",
"line-width": {"base": 1.2, "stops": [[6, 0.5], [20, 30]]},
"line-dasharray": [0.28, 0.14]
}
},
{
"id": "tunnel_motorway",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": [
"all",
["==", "class", "motorway"],
["!=", "ramp", 1],
["==", "brunnel", "tunnel"]
],
"layout": {"line-join": "miter"},
"paint": {
"line-color": "#fff",
"line-width": {"base": 1.2, "stops": [[6, 0.5], [20, 30]]},
"line-dasharray": [0.28, 0.14]
}
},
{
"id": "tunnel_major_rail",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": ["all", ["==", "brunnel", "tunnel"], ["in", "class", "rail"]],
"paint": {
"line-color": "rgba(255, 255, 255, 1)",
"line-width": {"base": 1.4, "stops": [[14, 0.4], [15, 0.75], [20, 2]]}
}
},
{
"id": "tunnel_major_rail_hatching",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": ["all", ["==", "brunnel", "tunnel"], ["==", "class", "rail"]],
"paint": {
"line-color": "hsl(0, 0%, 100%)",
"line-dasharray": [0.2, 8],
"line-width": {"base": 1.4, "stops": [[14.5, 0], [15, 3], [20, 8]]}
}
},
{
"id": "tunnel_transit_rail",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": [
"all",
["==", "brunnel", "tunnel"],
["in", "class", "transit"]
],
"paint": {
"line-color": "rgba(255, 255, 255, 1)",
"line-width": {"base": 1.4, "stops": [[14, 0.4], [15, 0.75], [20, 2]]}
}
},
{
"id": "tunnel_transit_rail_hatching",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": [
"all",
["==", "brunnel", "tunnel"],
["==", "class", "transit"]
],
"paint": {
"line-color": "hsl(0, 0%, 100%)",
"line-dasharray": [0.2, 8],
"line-width": {"base": 1.4, "stops": [[14.5, 0], [15, 3], [20, 8]]}
}
},
{
"id": "road_area_pattern",
"type": "fill",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": ["all", ["==", "$type", "Polygon"]],
"layout": {"visibility": "none"},
"paint": {"fill-pattern": "pedestrian_polygon"}
},
{
"id": "road_motorway_link_casing",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"minzoom": 12,
"filter": [
"all",
["!in", "brunnel", "bridge", "tunnel"],
["==", "class", "motorway"],
["==", "ramp", 1]
],
"layout": {"line-cap": "round", "line-join": "round"},
"paint": {
"line-color": "hsl(0, 0%, 87%)",
"line-width": {
"base": 1.2,
"stops": [[12, 1], [13, 3], [14, 4], [20, 15]]
}
}
},
{
"id": "road_service_track_casing",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": [
"all",
["!in", "brunnel", "bridge", "tunnel"],
["in", "class", "service", "track"]
],
"layout": {"line-cap": "round", "line-join": "round"},
"paint": {
"line-color": "rgba(234, 227, 212, 1)",
"line-width": {"base": 1.2, "stops": [[15, 1], [16, 4], [20, 11]]}
}
},
{
"id": "road_link_casing",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"minzoom": 13,
"filter": [
"all",
["!in", "brunnel", "bridge", "tunnel"],
["!in", "class", "pedestrian", "path", "track", "service", "motorway"],
["==", "ramp", 1]
],
"layout": {"line-cap": "butt", "line-join": "miter"},
"paint": {
"line-color": "rgba(255, 255, 255, 1)",
"line-width": {
"base": 1.2,
"stops": [[12, 1], [13, 3], [14, 4], [20, 15]]
}
}
},
{
"id": "road_minor_casing",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": [
"all",
["==", "$type", "LineString"],
["!in", "brunnel", "bridge", "tunnel"],
["in", "class", "minor"],
["!=", "ramp", 1]
],
"layout": {"line-cap": "round", "line-join": "round"},
"paint": {
"line-color": "rgba(234, 227, 212, 1)",
"line-opacity": {"stops": [[12, 0], [12, 1]]},
"line-width": {
"base": 1.2,
"stops": [[12, 0.5], [13, 1], [14, 4], [20, 15]]
}
}
},
{
"id": "road_secondary_tertiary_casing",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": [
"all",
["!in", "brunnel", "bridge", "tunnel"],
["in", "class", "secondary", "tertiary"],
["!=", "ramp", 1]
],
"layout": {"line-cap": "butt", "line-join": "miter"},
"paint": {
"line-color": "rgba(234, 227, 212, 1)",
"line-width": {"base": 1.2, "stops": [[8, 1.5], [20, 17]]}
}
},
{
"id": "road_trunk_primary_casing",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"minzoom": 7,
"filter": [
"all",
["!in", "brunnel", "bridge", "tunnel"],
["in", "class", "primary", "trunk"]
],
"layout": {"line-join": "miter"},
"paint": {
"line-color": "rgba(255, 255, 255, 1)",
"line-width": {
"base": 1.2,
"stops": [[5, 0.4], [6, 0.6], [7, 1.5], [20, 22]]
}
}
},
{
"id": "road_motorway_casing",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"minzoom": 5,
"filter": [
"all",
["!in", "brunnel", "bridge", "tunnel"],
["==", "class", "motorway"],
["!=", "ramp", 1]
],
"layout": {"line-cap": "butt", "line-join": "miter"},
"paint": {
"line-color": "rgba(255, 255, 255, 1)",
"line-width": {"base": 1.2, "stops": [[5, 0], [7, 1.5], [20, 22]]}
}
},
{
"id": "road_path_pedestrian_casing",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"minzoom": 0,
"filter": [
"all",
["==", "$type", "LineString"],
["!in", "brunnel", "bridge", "tunnel"],
["in", "class", "path", "pedestrian"]
],
"layout": {"line-join": "round", "line-cap": "round"},
"paint": {
"line-color": "rgba(234, 227, 212, 1)",
"line-width": {
"base": 1.2,
"stops": [[12, 0.5], [13, 1], [14, 4], [20, 15]]
},
"line-opacity": {"stops": [[12, 0], [12, 1]]}
}
},
{
"id": "road_path_pedestrian",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"minzoom": 0,
"filter": [
"all",
["==", "$type", "LineString"],
["!in", "brunnel", "bridge", "tunnel"],
["in", "class", "path", "pedestrian"]
],
"layout": {"line-join": "round", "line-cap": "round"},
"paint": {
"line-color": "#fff",
"line-width": {"base": 1.2, "stops": [[13, 0], [14, 2.5], [20, 11.5]]}
}
},
{
"id": "road_motorway_link",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"minzoom": 12,
"filter": [
"all",
["!in", "brunnel", "bridge", "tunnel"],
["==", "class", "motorway"],
["==", "ramp", 1]
],
"layout": {"line-cap": "round", "line-join": "round"},
"paint": {
"line-color": "rgba(255, 255, 255, 1)",
"line-width": {
"base": 1.2,
"stops": [[12.5, 0], [13, 1.5], [14, 2.5], [20, 11.5]]
}
}
},
{
"id": "road_service_track",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": [
"all",
["!in", "brunnel", "bridge", "tunnel"],
["in", "class", "service", "track"]
],
"layout": {"line-cap": "round", "line-join": "round"},
"paint": {
"line-color": "#fff",
"line-width": {"base": 1.2, "stops": [[15.5, 0], [16, 2], [20, 7.5]]}
}
},
{
"id": "road_link",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"minzoom": 13,
"filter": [
"all",
["!in", "brunnel", "bridge", "tunnel"],
["==", "ramp", 1],
["!in", "class", "pedestrian", "path", "track", "service", "motorway"]
],
"layout": {"line-cap": "butt", "line-join": "miter"},
"paint": {
"line-color": "rgba(255, 255, 255, 1)",
"line-width": {
"base": 1.2,
"stops": [[12.5, 0], [13, 1.5], [14, 2.5], [20, 11.5]]
}
}
},
{
"id": "road_secondary_tertiary",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": [
"all",
["!in", "brunnel", "bridge", "tunnel"],
["in", "class", "secondary", "tertiary"]
],
"layout": {"line-cap": "butt", "line-join": "miter"},
"paint": {
"line-color": "rgba(255, 255, 255, 1)",
"line-width": {"base": 1.2, "stops": [[6.5, 0], [8, 0.5], [20, 13]]}
}
},
{
"id": "road_trunk_primary",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"minzoom": 7,
"filter": [
"all",
["!in", "brunnel", "bridge", "tunnel"],
["in", "class", "primary", "trunk"]
],
"layout": {"line-join": "miter"},
"paint": {
"line-color": "rgba(255, 255, 255, 1)",
"line-width": {"base": 1.2, "stops": [[6.5, 0], [7, 0.5], [20, 18]]}
}
},
{
"id": "road_motorway",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"minzoom": 5,
"filter": [
"all",
["!in", "brunnel", "bridge", "tunnel"],
["==", "class", "motorway"],
["!=", "ramp", 1]
],
"layout": {"line-cap": "butt", "line-join": "miter"},
"paint": {
"line-color": "rgba(255, 255, 255, 1)",
"line-width": {"base": 1.2, "stops": [[5, 0.6], [20, 18]]}
}
},
{
"id": "road_major_rail",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": [
"all",
["!in", "brunnel", "bridge", "tunnel"],
["==", "class", "rail"]
],
"paint": {
"line-color": "rgba(255, 255, 255, 1)",
"line-width": {"base": 1.4, "stops": [[14, 0.4], [15, 0.75], [20, 2]]}
}
},
{
"id": "road_major_rail_hatching",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": [
"all",
["!in", "brunnel", "bridge", "tunnel"],
["==", "class", "rail"]
],
"paint": {
"line-color": "hsl(0, 0%, 100%)",
"line-dasharray": [0.2, 8],
"line-width": {"base": 1.4, "stops": [[14.5, 0], [15, 3], [20, 8]]}
}
},
{
"id": "road_transit_rail",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": [
"all",
["!in", "brunnel", "bridge", "tunnel"],
["==", "class", "transit"]
],
"paint": {
"line-color": "rgba(255, 255, 255, 1)",
"line-width": {"base": 1.4, "stops": [[14, 0.4], [15, 0.75], [20, 2]]}
}
},
{
"id": "road_transit_rail_hatching",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": [
"all",
["!in", "brunnel", "bridge", "tunnel"],
["==", "class", "transit"]
],
"paint": {
"line-color": "hsl(0, 0%, 100%)",
"line-dasharray": [0.2, 8],
"line-width": {"base": 1.4, "stops": [[14.5, 0], [15, 3], [20, 8]]}
}
},
{
"id": "road_minor",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": [
"all",
["==", "$type", "LineString"],
["!in", "brunnel", "bridge", "tunnel"],
["in", "class", "minor"]
],
"layout": {"line-cap": "round", "line-join": "round"},
"paint": {
"line-color": "#fff",
"line-width": {"base": 1.2, "stops": [[13.5, 0], [14, 2.5], [20, 11.5]]}
}
},
{
"id": "road_one_way_arrow",
"type": "symbol",
"source": "openmaptiles",
"source-layer": "transportation",
"minzoom": 15,
"filter": ["==", "oneway", 1],
"layout": {
"icon-image": "arrow",
"symbol-placement": "line",
"visibility": "none"
}
},
{
"id": "road_one_way_arrow_opposite",
"type": "symbol",
"source": "openmaptiles",
"source-layer": "transportation",
"minzoom": 15,
"filter": ["==", "oneway", -1],
"layout": {
"icon-image": "arrow",
"symbol-placement": "line",
"icon-rotate": 180,
"visibility": "none"
}
},
{
"id": "bridge_motorway_link_casing",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": [
"all",
["==", "class", "motorway"],
["==", "ramp", 1],
["==", "brunnel", "bridge"]
],
"layout": {"line-join": "round"},
"paint": {
"line-color": "#dedede",
"line-width": {
"base": 1.2,
"stops": [[12, 1], [13, 3], [14, 4], [20, 15]]
}
}
},
{
"id": "bridge_service_track_casing",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": [
"all",
["==", "brunnel", "bridge"],
["in", "class", "service", "track"]
],
"layout": {"line-join": "round"},
"paint": {
"line-color": "#cfcdca",
"line-width": {"base": 1.2, "stops": [[15, 1], [16, 4], [20, 11]]}
}
},
{
"id": "bridge_link_casing",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": ["all", ["==", "class", "link"], ["==", "brunnel", "bridge"]],
"layout": {"line-join": "round"},
"paint": {
"line-color": "#dedede",
"line-width": {
"base": 1.2,
"stops": [[12, 1], [13, 3], [14, 4], [20, 15]]
}
}
},
{
"id": "bridge_street_casing",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": [
"all",
["==", "brunnel", "bridge"],
["in", "class", "street", "street_limited"]
],
"layout": {"line-join": "round"},
"paint": {
"line-color": "#dedede",
"line-opacity": {"stops": [[12, 0], [12.5, 1]]},
"line-width": {
"base": 1.2,
"stops": [[12, 0.5], [13, 1], [14, 4], [20, 15]]
}
}
},
{
"id": "bridge_path_pedestrian_casing",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": [
"all",
["==", "$type", "LineString"],
["==", "brunnel", "bridge"],
["in", "class", "path", "pedestrian"]
],
"layout": {"visibility": "none"},
"paint": {
"line-color": "hsl(35, 6%, 80%)",
"line-dasharray": [1, 0],
"line-width": {"base": 1.2, "stops": [[14, 1.5], [20, 18]]}
}
},
{
"id": "bridge_secondary_tertiary_casing",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": [
"all",
["==", "brunnel", "bridge"],
["in", "class", "secondary", "tertiary"]
],
"layout": {"line-join": "round"},
"paint": {
"line-color": "#dedede",
"line-width": {"base": 1.2, "stops": [[8, 1.5], [20, 17]]}
}
},
{
"id": "bridge_trunk_primary_casing",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": [
"all",
["==", "brunnel", "bridge"],
["in", "class", "primary", "trunk"]
],
"layout": {"line-join": "round"},
"paint": {
"line-color": "#dedede",
"line-width": {
"base": 1.2,
"stops": [[5, 0.4], [6, 0.6], [7, 1.5], [20, 22]]
}
}
},
{
"id": "bridge_motorway_casing",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": [
"all",
["==", "class", "motorway"],
["!=", "ramp", 1],
["==", "brunnel", "bridge"]
],
"layout": {"line-join": "round"},
"paint": {
"line-color": "#dedede",
"line-width": {
"base": 1.2,
"stops": [[5, 0.4], [6, 0.6], [7, 1.5], [20, 22]]
}
}
},
{
"id": "bridge_path_pedestrian",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": [
"all",
["==", "$type", "LineString"],
["==", "brunnel", "bridge"],
["in", "class", "path", "pedestrian"]
],
"paint": {
"line-color": "hsl(0, 0%, 100%)",
"line-dasharray": [1.5, 0.75],
"line-width": {"base": 1.2, "stops": [[15, 1.2], [20, 4]]}
}
},
{
"id": "bridge_motorway_link",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": [
"all",
["==", "class", "motorway"],
["==", "ramp", 1],
["==", "brunnel", "bridge"]
],
"layout": {"line-join": "round"},
"paint": {
"line-color": "hsl(0, 0%, 100%)",
"line-width": {
"base": 1.2,
"stops": [[12.5, 0], [13, 1.5], [14, 2.5], [20, 11.5]]
}
}
},
{
"id": "bridge_service_track",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": [
"all",
["==", "brunnel", "bridge"],
["in", "class", "service", "track"]
],
"layout": {"line-join": "round"},
"paint": {
"line-color": "#fff",
"line-width": {"base": 1.2, "stops": [[15.5, 0], [16, 2], [20, 7.5]]}
}
},
{
"id": "bridge_link",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": ["all", ["==", "class", "link"], ["==", "brunnel", "bridge"]],
"layout": {"line-join": "round"},
"paint": {
"line-color": "hsl(0, 0%, 100%)",
"line-width": {
"base": 1.2,
"stops": [[12.5, 0], [13, 1.5], [14, 2.5], [20, 11.5]]
}
}
},
{
"id": "bridge_street",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": ["all", ["==", "brunnel", "bridge"], ["in", "class", "minor"]],
"layout": {"line-join": "round"},
"paint": {
"line-color": "#fff",
"line-width": {"base": 1.2, "stops": [[13.5, 0], [14, 2.5], [20, 11.5]]}
}
},
{
"id": "bridge_secondary_tertiary",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": [
"all",
["==", "brunnel", "bridge"],
["in", "class", "secondary", "tertiary"]
],
"layout": {"line-join": "round"},
"paint": {
"line-color": "hsl(0, 0%, 100%)",
"line-width": {"base": 1.2, "stops": [[6.5, 0], [7, 0.5], [20, 10]]}
}
},
{
"id": "bridge_trunk_primary",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": [
"all",
["==", "brunnel", "bridge"],
["in", "class", "primary", "trunk"]
],
"layout": {"line-join": "round"},
"paint": {
"line-color": "hsl(0, 0%, 100%)",
"line-width": {"base": 1.2, "stops": [[6.5, 0], [7, 0.5], [20, 18]]}
}
},
{
"id": "bridge_motorway",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": [
"all",
["==", "class", "motorway"],
["!=", "ramp", 1],
["==", "brunnel", "bridge"]
],
"layout": {"line-join": "round"},
"paint": {
"line-color": "hsl(0, 0%, 100%)",
"line-width": {"base": 1.2, "stops": [[6.5, 0], [7, 0.5], [20, 18]]}
}
},
{
"id": "bridge_major_rail",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": ["all", ["==", "class", "rail"], ["==", "brunnel", "bridge"]],
"paint": {
"line-color": "#dedede",
"line-width": {"base": 1.4, "stops": [[14, 0.4], [15, 0.75], [20, 2]]}
}
},
{
"id": "bridge_major_rail_hatching",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": ["all", ["==", "class", "rail"], ["==", "brunnel", "bridge"]],
"paint": {
"line-color": "hsl(0, 0%, 87%)",
"line-dasharray": [0.2, 8],
"line-width": {"base": 1.4, "stops": [[14.5, 0], [15, 3], [20, 8]]}
}
},
{
"id": "bridge_transit_rail",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": [
"all",
["==", "class", "transit"],
["==", "brunnel", "bridge"]
],
"paint": {
"line-color": "#dedede",
"line-width": {"base": 1.4, "stops": [[14, 0.4], [15, 0.75], [20, 2]]}
}
},
{
"id": "bridge_transit_rail_hatching",
"type": "line",
"source": "openmaptiles",
"source-layer": "transportation",
"filter": [
"all",
["==", "class", "transit"],
["==", "brunnel", "bridge"]
],
"paint": {
"line-color": "hsl(0, 0%, 87%)",
"line-dasharray": [0.2, 8],
"line-width": {"base": 1.4, "stops": [[14.5, 0], [15, 3], [20, 8]]}
}
},
{
"id": "building",
"type": "fill",
"source": "openmaptiles",
"source-layer": "building",
"minzoom": 16,
"maxzoom": 24,
"layout": {"visibility": "visible"},
"paint": {"fill-color": "rgba(224, 204, 192, 0.7)"}
},
{
"id": "building-top",
"type": "fill",
"source": "openmaptiles",
"source-layer": "building",
"minzoom": 15,
"maxzoom": 24,
"layout": {"visibility": "visible"},
"paint": {
"fill-color": "rgba(224, 204, 192, 0.7)",
"fill-opacity": {"stops": [[15, 0], [16, 1]]},
"fill-outline-color": "rgba(224, 204, 192, 0.7)",
"fill-translate": {"stops": [[15, [0, 0]], [16, [-2, -2]]]}
}
},
{
"id": "building-3d",
"type": "fill-extrusion",
"source": "openmaptiles",
"source-layer": "building",
"minzoom": 14,
"layout": {"visibility": "visible"},
"paint": {
"fill-extrusion-color": "hsl(35, 8%, 85%)",
"fill-extrusion-height": {
"property": "render_height",
"type": "identity"
},
"fill-extrusion-base": {
"property": "render_min_height",
"type": "identity"
},
"fill-extrusion-opacity": 0.8
}
},
{
"id": "boundary_3",
"type": "line",
"source": "openmaptiles",
"source-layer": "boundary",
"minzoom": 4,
"filter": ["all", ["in", "admin_level", 3, 4], ["==", "maritime", 0]],
"layout": {"line-join": "round"},
"paint": {
"line-color": "rgba(195, 195, 195, 1)",
"line-dasharray": [1, 0],
"line-width": {"base": 1, "stops": [[4, 0.2], [5, 0.5], [12, 1.5]]}
}
},
{
"id": "boundary_2_z0-4",
"type": "line",
"source": "openmaptiles",
"source-layer": "boundary",
"maxzoom": 24,
"filter": [
"all",
["==", "admin_level", 2],
["!has", "claimed_by"],
["==", "maritime", 0]
],
"layout": {"line-cap": "round", "line-join": "round"},
"paint": {
"line-color": "rgba(195, 195, 195, 1)",
"line-opacity": {"base": 1, "stops": [[0, 0.4], [4, 1]]},
"line-width": {"base": 1, "stops": [[4, 0.7], [5, 1], [12, 4]]}
}
},
{
"id": "boundary_2_z5-",
"type": "line",
"source": "openmaptiles",
"source-layer": "boundary",
"minzoom": 5,
"filter": [
"all",
["==", "admin_level", 2],
["==", "maritime", 0],
["==", "disputed", 0]
],
"layout": {"line-cap": "round", "line-join": "round"},
"paint": {
"line-color": "rgba(195, 195, 195, 1)",
"line-opacity": 1,
"line-width": {"base": 1, "stops": [[4, 0.7], [5, 1], [12, 3]]}
}
},
{
"id": "water_name_line",
"type": "symbol",
"source": "openmaptiles",
"source-layer": "waterway",
"filter": ["all", ["==", "$type", "LineString"]],
"layout": {
"text-field": "{name}",
"text-font": ["Roboto Regular"],
"text-max-width": 5,
"text-size": 12,
"symbol-placement": "line",
"visibility": "visible"
},
"paint": {
"text-color": "#5d60be",
"text-halo-color": "rgba(255,255,255,0.7)",
"text-halo-width": 1
}
},
{
"id": "water_name_point_ocean",
"type": "symbol",
"source": "openmaptiles",
"source-layer": "water_name",
"minzoom": 1,
"filter": ["all", ["==", "$type", "Point"], ["==", "classe", "ocean"]],
"layout": {
"text-field": "{name:fr}",
"text-font": ["Open Sans Regular", "Open Sans Regular"],
"text-max-width": 5,
"text-size": {"stops": [[3, 12], [4, 18]]},
"text-letter-spacing": 0.1,
"text-offset": [0, 2.4],
"visibility": "visible"
},
"paint": {
"text-color": "rgba(9, 114, 214, 1)",
"text-halo-color": "rgba(9, 114, 214, 1)"
}
},
{
"id": "water_name_point_sea",
"type": "symbol",
"source": "openmaptiles",
"source-layer": "water_name",
"minzoom": 1,
"filter": ["all", ["==", "$type", "Point"], ["==", "class", "sea"]],
"layout": {
"text-field": "{name:fr}",
"text-font": ["Open Sans Regular", "Open Sans Regular"],
"text-max-width": 5,
"text-size": {"stops": [[3, 11], [4, 14]]},
"text-letter-spacing": 0.2,
"visibility": "visible"
},
"paint": {
"text-color": "rgba(9, 114, 214, 1)",
"text-halo-color": "rgba(9, 114, 214, 1)",
"text-halo-blur": 0.75
}
},
{
"id": "water_name_point",
"type": "symbol",
"source": "openmaptiles",
"source-layer": "water_name",
"minzoom": 1,
"filter": ["==", "$type", "Point"],
"layout": {
"text-field": "{name:fr}",
"text-font": ["Open Sans Regular", "Open Sans Regular"],
"text-max-width": 5,
"text-size": {"stops": [[3, 12], [4, 18]]},
"text-letter-spacing": 0.1,
"text-offset": [0, 2.4],
"visibility": "none"
},
"paint": {
"text-color": "rgba(9, 114, 214, 1)",
"text-halo-color": "rgba(9, 114, 214, 1)"
}
},
{
"id": "poi_z12_poi_label_1",
"type": "symbol",
"source": "openmaptiles",
"source-layer": "poi",
"minzoom": 12,
"filter": [
"all",
["==", "$type", "Point"],
["<=", "rank", 20],
[
"in",
"subclass",
"college",
"school",
"university",
"clinic",
"fountain",
"train_station",
"public",
"castle",
"city_gate",
"obelisk",
"observatory",
"tower",
"tree",
"peak",
"volcano",
"valley",
"cliff",
"stone",
"aquarium",
"recreation_ground",
"swimming_pool",
"theatre",
"bus_station",
"parking",
"hospital",
"embassy",
"fire_station",
"police",
"townhall",
"stadium",
"monument",
"garden",
"park",
"playground",
"stadium",
"sports_centre",
"attraction",
"information",
"museum",
"viewpoint",
"garden",
"swimming_pool",
"mall",
"theatre",
"public_building",
"place_of_worship",
"bicycle_rental",
"basin",
"art",
"bus_stop",
"artwork"
]
],
"layout": {
"text-anchor": "top",
"text-field": "{name}",
"text-font": ["Open Sans Semibold"],
"text-max-width": 9,
"text-offset": [0, 0.6],
"text-size": 12,
"visibility": "visible",
"icon-image": "{class}_11"
},
"paint": {
"text-color": "rgba(102, 102, 102, 1)",
"text-halo-blur": 0.5,
"text-halo-color": "#ffffff",
"text-halo-width": 1
}
},
{
"id": "poi_z13_poi_label_2",
"type": "symbol",
"source": "openmaptiles",
"source-layer": "poi",
"minzoom": 13,
"filter": [
"all",
["==", "$type", "Point"],
[">=", "rank", 20],
[
"in",
"subclass",
"college",
"school",
"university",
"clinic",
"fountain",
"train_station",
"public",
"castle",
"city_gate",
"obelisk",
"observatory",
"tower",
"tree",
"peak",
"volcano",
"valley",
"cliff",
"stone",
"aquarium",
"recreation_ground",
"swimming_pool",
"theatre",
"bus_station",
"parking",
"hospital",
"embassy",
"fire_station",
"police",
"townhall",
"stadium",
"monument",
"garden",
"park",
"playground",
"stadium",
"sports_centre",
"attraction",
"information",
"museum",
"viewpoint",
"garden",
"swimming_pool",
"mall",
"theatre",
"public_building",
"place_of_worship",
"bicycle_rental",
"basin",
"art",
"bus_stop",
"artwork"
]
],
"layout": {
"text-anchor": "top",
"text-field": "{name}",
"text-font": ["Open Sans Semibold"],
"text-max-width": 9,
"text-offset": [0, 0.6],
"text-size": 12,
"visibility": "visible",
"icon-image": "{class}_11"
},
"paint": {
"text-color": "rgba(102, 102, 102, 1)",
"text-halo-blur": 0.5,
"text-halo-color": "#ffffff",
"text-halo-width": 1
}
},
{
"id": "poi_z15_poi_label_4",
"type": "symbol",
"source": "openmaptiles",
"source-layer": "poi",
"minzoom": 15,
"filter": [
"all",
["==", "$type", "Point"],
[">=", "rank", 7],
["<", "rank", 20],
[
"in",
"subclass",
"college",
"library",
"School",
"university",
"bus_station",
"parking",
"clinic",
"hospital",
"arts_centre",
"foutain",
"planetarium",
"embassy",
"fire_station",
"police",
"townhall",
"stadium",
"train_station",
"public",
"castle",
"city_gate",
"monument",
"garden",
"park",
"playground",
"stadium",
"sports_centre",
"obelisk",
"observatory",
"tower",
"tree",
"peak",
"volcano",
"valley",
"cliff",
"stone",
"aquarium",
"attraction",
"information",
"museum",
"viewpoint",
"recreation_ground",
"theatre",
"garden",
"swimming_pool",
"mall",
"public_building",
"place_of_worship",
"bicycle_rental",
"basin",
"art",
"bus_stop",
"artwork"
]
],
"layout": {
"icon-image": "{class}_11",
"text-anchor": "top",
"text-field": "{name}",
"text-font": ["Open Sans Semibold"],
"text-max-width": 9,
"text-offset": [0, 0.6],
"text-size": 12,
"visibility": "visible"
},
"paint": {
"text-color": "rgba(87, 87, 87, 1)",
"text-halo-blur": 0.5,
"text-halo-color": "#ffffff",
"text-halo-width": 1
}
},
{
"id": "poi_z14_poi_label_3",
"type": "symbol",
"source": "openmaptiles",
"source-layer": "poi",
"minzoom": 14,
"filter": [
"all",
["==", "$type", "Point"],
["==", "rank", 1],
["in", "type", 7],
[
"in",
"subclass",
"college",
"library",
"School",
"university",
"bus_station",
"parking",
"clinic",
"hospital",
"arts_centre",
"foutain",
"planetarium",
"embassy",
"fire_station",
"police",
"townhall",
"stadium",
"train_station",
"public",
"castle",
"city_gate",
"monument",
"garden",
"park",
"playground",
"stadium",
"sports_centre",
"obelisk",
"observatory",
"tower",
"tree",
"peak",
"volcano",
"valley",
"cliff",
"stone",
"aquarium",
"attraction",
"information",
"museum",
"viewpoint",
"recreation_ground",
"theatre",
"garden",
"swimming_pool",
"mall",
"public_building",
"place_of_worship",
"bicycle_rental",
"basin",
"art",
"bus_stop",
"artwork"
]
],
"layout": {
"icon-image": "{class}_11",
"text-anchor": "top",
"text-field": "{name}",
"text-font": ["Open Sans Semibold"],
"text-max-width": 9,
"text-offset": [0, 0.6],
"text-size": 12,
"visibility": "visible"
},
"paint": {
"text-color": "rgba(87, 87, 87, 1)",
"text-halo-blur": 0.5,
"text-halo-color": "#ffffff",
"text-halo-width": 1
}
},
{
"id": "poi_transit",
"type": "symbol",
"source": "openmaptiles",
"source-layer": "poi",
"filter": ["all", ["in", "class", "bus", "rail", "airport"]],
"layout": {
"text-anchor": "left",
"text-field": "{name_en}",
"text-font": ["Open Sans Semibold"],
"text-max-width": 9,
"text-offset": [0.9, 0],
"text-size": 12,
"visibility": "none",
"icon-image": "{class}_11"
},
"paint": {
"text-color": "rgba(87, 87, 87, 1)",
"text-halo-blur": 0.5,
"text-halo-color": "#ffffff",
"text-halo-width": 1
}
},
{
"id": "road_label",
"type": "symbol",
"source": "openmaptiles",
"source-layer": "transportation_name",
"minzoom": 12,
"filter": ["all", ["!in", "class", "ferry"]],
"layout": {
"symbol-placement": "line",
"text-anchor": "center",
"text-field": "{name}",
"text-font": ["Open Sans Regular"],
"text-size": {"base": 1, "stops": [[9, 12], [20, 16]]},
"symbol-spacing": 400,
"text-padding": 1,
"text-letter-spacing": 0.01,
"text-max-angle": 30
},
"paint": {
"text-color": "#6B6B6B",
"text-halo-blur": 0.5,
"text-halo-width": 1,
"text-halo-color": "rgba(255,255,255, 0.75)"
}
},
{
"id": "road_label_small",
"type": "symbol",
"source": "openmaptiles",
"source-layer": "transportation_name",
"minzoom": 15,
"filter": [
"all",
["in", "class", "motorway", "primary", "secondary", "tertiary", "trunk"]
],
"layout": {
"symbol-placement": "line",
"text-anchor": "center",
"text-field": "{name}",
"text-font": ["Open Sans Regular"],
"text-size": {"base": 1, "stops": [[15, 10], [20, 13]]},
"symbol-spacing": 500,
"text-padding": 1,
"text-letter-spacing": 0.01,
"text-max-angle": 30,
"text-rotation-alignment": "map"
},
"paint": {
"text-color": "#6B6B6B",
"text-halo-width": 1.25,
"text-halo-color": "#ffffff"
}
},
{
"id": "road_label_medium",
"type": "symbol",
"source": "openmaptiles",
"source-layer": "transportation_name",
"minzoom": 13,
"filter": [
"all",
[
"in",
"class",
"link",
"pedestrian",
"path",
"street",
"street_limited"
],
["==", "$type", "LineString"]
],
"layout": {
"symbol-placement": "line",
"text-anchor": "center",
"text-field": "{name}",
"text-font": ["Open Sans Regular"],
"text-size": {"base": 1, "stops": [[11, 10], [20, 14]]},
"symbol-spacing": 500,
"text-padding": 1,
"text-letter-spacing": 0.01,
"text-max-angle": 30,
"text-rotation-alignment": "map"
},
"paint": {
"text-color": "#6B6B6B",
"text-halo-blur": 0.5,
"text-halo-width": 1,
"text-halo-color": "#ffffff"
}
},
{
"id": "road_label_large",
"type": "symbol",
"source": "openmaptiles",
"source-layer": "transportation_name",
"minzoom": 12,
"filter": [
"all",
["in", "class", "motorway", "primary", "secondary", "tertiary", "trunk"]
],
"layout": {
"symbol-placement": "line",
"text-anchor": "center",
"text-field": "{name}",
"text-font": ["Open Sans Regular"],
"text-size": {"base": 1, "stops": [[9, 12], [20, 16]]},
"symbol-spacing": 400,
"text-padding": 1,
"text-letter-spacing": 0.01,
"text-max-angle": 30
},
"paint": {
"text-color": "#6B6B6B",
"text-halo-color": "rgba(255,255,255, 0.75)"
}
},
{
"id": "road_shield",
"type": "symbol",
"source": "openmaptiles",
"source-layer": "transportation_name",
"minzoom": 7,
"filter": ["all", ["<=", "ref_length", 6]],
"layout": {
"icon-image": "default_{ref_length}",
"icon-rotation-alignment": "viewport",
"symbol-placement": {"base": 1, "stops": [[10, "point"], [11, "line"]]},
"symbol-spacing": 500,
"text-field": "{ref}",
"text-font": ["Roboto Regular"],
"text-offset": [0, 0.1],
"text-rotation-alignment": "viewport",
"text-size": 10,
"icon-size": 0.8,
"visibility": "none"
}
},
{
"id": "place_other",
"type": "symbol",
"source": "openmaptiles",
"source-layer": "place",
"filter": [
"all",
["in", "class", "hamlet", "island", "islet", "neighbourhood", "suburb"]
],
"layout": {
"text-field": "{name}",
"text-font": ["Open Sans Bold", "Open Sans Regular"],
"text-letter-spacing": 0.1,
"text-max-width": 9,
"text-size": {"base": 1.2, "stops": [[12, 11], [15, 18]]},
"text-transform": "uppercase"
},
"paint": {
"text-color": "rgba(47, 125, 225, 1)",
"text-halo-color": "rgba(255,255,255,0.8)",
"text-halo-width": 1.2
}
},
{
"id": "place_village",
"type": "symbol",
"source": "openmaptiles",
"source-layer": "place",
"filter": ["all", ["==", "class", "village"]],
"layout": {
"text-field": "{name}",
"text-font": ["Open Sans Regular", "Open Sans Regular"],
"text-max-width": 8,
"text-size": {"base": 1.2, "stops": [[10, 12], [15, 18]]}
},
"paint": {
"text-color": "rgba(0, 67, 149, 1)",
"text-halo-color": "rgba(255,255,255,0.8)",
"text-halo-width": 1.2
}
},
{
"id": "place_town",
"type": "symbol",
"source": "openmaptiles",
"source-layer": "place",
"minzoom": 6,
"filter": ["all", ["==", "class", "town"]],
"layout": {
"icon-image": "",
"text-anchor": "center",
"text-field": "{name}",
"text-font": ["Open Sans Regular", "Open Sans Regular"],
"text-max-width": 8,
"text-offset": [0, 0],
"text-size": {"base": 1.2, "stops": [[10, 12], [15, 22]]}
},
"paint": {
"text-color": "rgba(0, 67, 149, 1)",
"text-halo-color": "rgba(255,255,255,0.8)",
"text-halo-width": 1.2
}
},
{
"id": "place_city",
"type": "symbol",
"source": "openmaptiles",
"source-layer": "place",
"minzoom": 5,
"filter": ["all", ["==", "class", "city"]],
"layout": {
"icon-image": "{maki",
"text-anchor": "center",
"text-field": "{name:fr}",
"text-font": ["Open Sans Bold", "Open Sans Regular"],
"text-max-width": 9,
"text-offset": [0, 0],
"text-size": {"base": 1.2, "stops": [[7, 12], [11, 18]]},
"icon-allow-overlap": true,
"icon-optional": false
},
"paint": {
"text-color": "rgba(14, 80, 164, 1)",
"text-halo-color": "rgba(255,255,255,0.8)",
"text-halo-width": 1.2
}
},
{
"id": "state",
"type": "symbol",
"source": "openmaptiles",
"source-layer": "place",
"maxzoom": 6,
"filter": ["all", ["==", "class", "state"]],
"layout": {
"text-field": "{name:fr}",
"text-font": ["Open Sans Bold", "Open Sans Regular"],
"text-size": {"stops": [[4, 11], [6, 15]]},
"text-transform": "uppercase"
},
"paint": {
"text-color": "rgba(14, 80, 164, 1)",
"text-halo-color": "rgba(255,255,255,0.8)",
"text-halo-width": 1.2
}
},
{
"id": "country_3",
"type": "symbol",
"source": "openmaptiles",
"source-layer": "place",
"filter": ["all", [">=", "rank", 3], ["==", "class", "country"]],
"layout": {
"text-field": "{name:fr}",
"text-font": ["Open Sans Bold", "Open Sans Regular"],
"text-max-width": 6.25,
"text-size": {"stops": [[4, 11], [6, 18]]},
"text-transform": "uppercase"
},
"paint": {
"text-color": "rgba(14, 80, 164, 1)",
"text-halo-blur": 1,
"text-halo-color": "rgba(255,255,255,0.8)",
"text-halo-width": 2
}
},
{
"id": "country_2",
"type": "symbol",
"source": "openmaptiles",
"source-layer": "place",
"filter": ["all", ["==", "rank", 2], ["==", "class", "country"]],
"layout": {
"text-field": "{name:fr}",
"text-font": ["Open Sans Bold", "Open Sans Regular"],
"text-max-width": 6.25,
"text-size": {"stops": [[2, 11], [5, 18]]},
"text-transform": "uppercase"
},
"paint": {
"text-color": "rgba(14, 80, 164, 1)",
"text-halo-blur": 1,
"text-halo-color": "rgba(255,255,255,0.8)",
"text-halo-width": 2
}
},
{
"id": "country_1",
"type": "symbol",
"source": "openmaptiles",
"source-layer": "place",
"minzoom": 1,
"filter": ["all", ["==", "rank", 1], ["==", "class", "country"]],
"layout": {
"text-field": "{name:fr}",
"text-font": ["Open Sans Bold", "Open Sans Regular"],
"text-max-width": 6.25,
"text-size": {"stops": [[2, 11], [5, 18]]},
"text-transform": "uppercase"
},
"paint": {
"text-color": "rgba(14, 80, 164, 1)",
"text-halo-blur": 1,
"text-halo-color": "rgba(255,255,255,0.8)",
"text-halo-width": 2
}
},
{
"id": "continent",
"type": "symbol",
"source": "openmaptiles",
"source-layer": "place",
"maxzoom": 1,
"filter": ["all", ["==", "class", "continent"]],
"layout": {
"text-field": "{name_en}",
"text-font": ["Roboto Condensed Italic"],
"text-size": 13,
"text-transform": "uppercase",
"text-justify": "center",
"visibility": "visible"
},
"paint": {
"text-color": "#633",
"text-halo-color": "rgba(255,255,255,0.7)",
"text-halo-width": 1
}
}
],
"id": "osm-liberty"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment