Files
MapLibreParticleLab/styles/bright/style.json
2014-08-22 17:14:51 -07:00

1336 lines
33 KiB
JSON

{
"version": 4,
"sprite": "img/sprite",
"glyphs": "mapbox://fontstack/{fontstack}/{range}.pbf",
"constants": {
"@name": "{name_en}",
"@sans": "Open Sans Regular, Arial Unicode MS Regular",
"@sans_it": "Open Sans Italic, Arial Unicode MS Regular",
"@sans_md": "Open Sans Semibold, Arial Unicode MS Bold",
"@sans_bd": "Open Sans Bold, Arial Unicode MS Bold",
"@land": "#f8f4f0",
"@water": "#a0c8f0",
"@admin": "#446",
"@admin-opacity": 0.5,
"@park": "#d8e8c8",
"@cemetary": "#e0e4dd",
"@hospital": "#fde",
"@school": "#f0e8f8",
"@wood": "#6a4",
"@building": "#f2eae2",
"@building_shadow": "#dfdbd7",
"@building_color_transition": {
"base": 1,
"stops": [[15.5, "#f2eae2"], [16, "#dfdbd7"]]
},
"@building_opacity": {"base": 1, "stops": [[15, 0], [16, 1]]},
"@aeroway": "#f0ede9",
"@motorway": "#fc8",
"@motorway_casing": "#e9ac77",
"@motorway_tunnel": "#ffdaa6",
"@main": "#fea",
"@main_tunnel": "#fff4c6",
"@street": "#fff",
"@street_limited": "#f3f3f3",
"@street_casing": "#cfcdca",
"@path": "#cba",
"@rail": "#bbb",
"@text": "#334",
"@text_halo": "rgba(255,255,255,0.8)",
"@marine_text": "#74aee9",
"@marine_text_halo": "rgba(255,255,255,0.7)",
"@poi_text": "#666",
"@poi_text_halo": "#ffffff",
"@maki": "#666",
"@point_translate": [0, -30],
"@tunnel_line_dasharray": [{
"base": 1.5, "stops": [[12, 6], [20, 9]]
}, {
"base": 1.5, "stops": [[12, 2], [20, 3]]
}],
"@motorway_width": {"base": 1.2, "stops": [[6.5, 0], [7, 0.5], [20, 18]]},
"@motorway_casing_width": {"base": 1.2, "stops": [[5, 0.4], [6, 0.6], [7, 1.5], [20, 22]]},
"@motorway_link_width": {"base": 1.2, "stops": [[12.5, 0], [13, 1.5], [20, 10]]},
"@motorway_link_casing_width": {"base": 1.2, "stops": [[12, 1], [13, 3], [20, 13]]},
"@main_width": {"base": 1.2, "stops": [[6.5, 0], [7, 0.5], [20, 14]]},
"@main_casing_width": {"base": 1.2, "stops": [[5, 0.1], [6, 0.2], [7, 1.5], [20, 18]]},
"@street_width": {"base": 1.2, "stops": [[13.5, 0], [14, 2.5], [20, 11.5]]},
"@street_casing_width": {"base": 1.2, "stops": [[12, 0.5], [13, 1], [14, 4], [20, 15]]},
"@street_casing_opacity": {"stops": [[12, 0], [12.5, 1]]},
"@service_casing_width": {"base": 1.2, "stops": [[15, 1], [16, 4], [20, 11]]},
"@service_width": {"base": 1.2, "stops": [[15.5, 0], [16, 2], [20, 7.5]]},
"@path_width": {"base": 1.2, "stops": [[15, 1.2], [20, 4]]},
"@path_line_dasharray": [{
"base": 1.2, "stops": [[15, 2], [20, 4]]
},{
"base": 1.2, "stops": [[15, 1], [20, 2]]
}],
"@rail_width": {"base": 1.4, "stops": [[14, 0.4], [15, 0.75], [20, 2]]},
"@rail_hatch_width": {"base": 1.4, "stops": [[14.5, 0], [15, 3], [20, 8]]},
"@rail_hatch_line_dasharray": [2, 30],
"@admin_level_3_width": {
"base": 1,
"stops": [[4, 0.4], [5, 1], [12, 3]]
},
"@admin_level_2_width": {
"base": 1,
"stops": [[4, 1.4], [5, 2], [12, 8]]
}
},
"sources": {
"mapbox": {
"type": "vector",
"url": "mapbox://mapbox.mapbox-streets-v6-dev",
"maxZoom": 15
}
},
"layers": [{
"id": "background",
"style": {
"background-color": "@land"
},
"type": "background"
}, {
"id": "landuse_park",
"source": "mapbox",
"source-layer": "landuse",
"filter": { "class": "park" },
"style": {
"fill-color": "@park"
},
"type": "fill"
}, {
"id": "landuse_cemetary",
"source": "mapbox",
"source-layer": "landuse",
"filter": { "class": "cemetary" },
"style": {
"fill-color": "@cemetary"
},
"type": "fill"
}, {
"id": "landuse_hospital",
"source": "mapbox",
"source-layer": "landuse",
"filter": { "class": "hospital" },
"style": {
"fill-color": "@hospital"
},
"type": "fill"
}, {
"id": "landuse_school",
"source": "mapbox",
"source-layer": "landuse",
"filter": { "class": "school" },
"style": {
"fill-color": "@school"
},
"type": "fill"
}, {
"id": "landuse_wood",
"source": "mapbox",
"source-layer": "landuse",
"filter": { "class": "wood" },
"style": {
"fill-color": "@wood",
"fill-opacity": 0.1
},
"type": "fill"
}, {
"id": "waterway",
"source": "mapbox",
"source-layer": "waterway",
"filter": {
"class": {
"!=": ["river", "stream", "canal"]
}
},
"render": {
"line-cap": "round"
},
"style": {
"line-color": "@water",
"line-width": {
"base": 1.3,
"stops": [[13, 0.5], [20, 2]]
}
},
"type": "line"
}, {
"id": "waterway_river",
"source": "mapbox",
"source-layer": "waterway",
"filter": { "class": "river" },
"render": {
"line-cap": "round"
},
"style": {
"line-color": "@water",
"line-width": {
"base": 1.2,
"stops": [[11, 0.5], [20, 6]]
}
},
"type": "line"
}, {
"id": "waterway_stream_canal",
"source": "mapbox",
"source-layer": "waterway",
"filter": { "class": ["stream", "canal"] },
"render": {
"line-cap": "round"
},
"style": {
"line-color": "@water",
"line-width": {
"base": 1.3,
"stops": [[13, 0.5], [20, 6]]
}
},
"type": "line"
}, {
"id": "water",
"source": "mapbox",
"source-layer": "water",
"style": {
"fill-color": "@water"
},
"type": "fill"
}, {
"id": "water_offset",
"source": "mapbox",
"source-layer": "water",
"type": "fill",
"style": {
"fill-color": "white",
"fill-opacity": 0.3,
"fill-translate": [0, 2.5]
}
}, {
"id": "water_pattern",
"ref": "water",
"style": {
"fill-image": "wave",
"fill-translate": [0, 2.5]
}
}, {
"id": "aeroway_fill",
"source": "mapbox",
"source-layer": "aeroway",
"min-zoom": 11,
"filter": {
"$type": "Polygon"
},
"style": {
"fill-color": "@aeroway",
"fill-opacity": 0.7
},
"type": "fill"
}, {
"id": "aeroway_runway",
"source": "mapbox",
"source-layer": "aeroway",
"min-zoom": 11,
"filter": {
"$type": "LineString",
"type": "runway" },
"style": {
"line-color": "@aeroway",
"line-width": {
"base": 1.2,
"stops": [[11, 3], [20, 16]]
}
},
"type": "line"
}, {
"id": "aeroway_taxiway",
"source": "mapbox",
"source-layer": "aeroway",
"min-zoom": 11,
"filter": {
"$type": "LineString",
"type": "taxiway" },
"style": {
"line-color": "@aeroway",
"line-width": {
"base": 1.2,
"stops": [[11, 0.5], [20, 6]]
}
},
"type": "line"
}, {
"id": "building",
"source": "mapbox",
"source-layer": "building",
"style": {
"fill-color": "@building_color_transition"
},
"type": "fill"
}, {
"id": "building_top",
"ref": "building",
"style": {
"fill-color": "@building",
"fill-opacity": "@building_opacity",
"fill-translate": [{
"base": 1,
"stops": [[15, 0], [16, -2] ]
}, {
"base": 1,
"stops": [[15, 0], [16, -2] ]
}],
"fill-outline-color": "@building_shadow"
}
}, {
"id": "tunnel_motorway_link_casing",
"source": "mapbox",
"source-layer": "tunnel",
"filter": { "class": "motorway_link" },
"render": {
"line-cap": "round",
"line-join": "round"
},
"style": {
"line-color": "@motorway_casing",
"line-dasharray": "@tunnel_line_dasharray",
"line-width": "@motorway_link_casing_width"
},
"type": "line"
}, {
"id": "tunnel_service_casing",
"source": "mapbox",
"source-layer": "tunnel",
"filter": { "class": "service" },
"render": {
"line-cap": "round",
"line-join": "round"
},
"style": {
"line-color": "@street_casing",
"line-dasharray": "@tunnel_line_dasharray",
"line-width": "@service_casing_width"
},
"type": "line"
}, {
"id": "tunnel_street_casing",
"source": "mapbox",
"source-layer": "tunnel",
"filter": { "class": ["street", "street_limited"] },
"render": {
"line-join": "round"
},
"style": {
"line-color": "@street_casing",
"line-dasharray": [7, 2],
"line-width": "@street_casing_width",
"line-opacity": "@street_casing_opacity"
},
"type": "line"
}, {
"id": "tunnel_main_casing",
"source": "mapbox",
"source-layer": "tunnel",
"filter": { "class": "main" },
"render": {
"line-cap": "round",
"line-join": "round"
},
"style": {
"line-color": "@motorway_casing",
"line-dasharray": "@tunnel_line_dasharray",
"line-width": "@main_casing_width"
},
"type": "line"
}, {
"id": "tunnel_motorway_casing",
"source": "mapbox",
"source-layer": "tunnel",
"filter": { "class": "motorway" },
"render": {
"line-cap": "round",
"line-join": "round"
},
"style": {
"line-color": "@motorway_casing",
"line-dasharray": "@tunnel_line_dasharray",
"line-width": "@motorway_casing_width"
},
"type": "line"
}, {
"id": "tunnel_path",
"source": "mapbox",
"source-layer": "tunnel",
"filter": { "class": "path" },
"type": "line",
"style": {
"line-color": "@path",
"line-dasharray": "@path_line_dasharray",
"line-width": "@path_width"
}
}, {
"id": "tunnel_motorway_link",
"ref": "tunnel_motorway_link_casing",
"style": {
"line-color": "@motorway",
"line-width": "@motorway_link_width"
}
}, {
"id": "tunnel_service",
"ref": "tunnel_service_casing",
"style": {
"line-color": "@street",
"line-width": "@service_width"
}
}, {
"id": "tunnel_street",
"ref": "tunnel_street_casing",
"style": {
"line-color": "@street",
"line-width": "@street_width"
}
}, {
"id": "tunnel_main",
"ref": "tunnel_main_casing",
"style": {
"line-color": "@main_tunnel",
"line-width": "@main_width"
}
}, {
"id": "tunnel_motorway",
"ref": "tunnel_motorway_casing",
"style": {
"line-color": "@motorway_tunnel",
"line-width": "@motorway_width"
}
}, {
"id": "tunnel_major_rail",
"source": "mapbox",
"source-layer": "tunnel",
"filter": { "class": "major_rail" },
"style": {
"line-color": "@rail",
"line-width": "@rail_width"
},
"type": "line"
}, {
"id": "tunnel_major_rail_hatching",
"ref": "tunnel_major_rail",
"style": {
"line-color": "@rail",
"line-dasharray": "@rail_hatch_line_dasharray",
"line-width": "@rail_hatch_width"
}
}, {
"id": "road_motorway_link_casing",
"source": "mapbox",
"source-layer": "road",
"min-zoom": 12,
"filter": { "class": "motorway_link" },
"render": {
"line-cap": "round",
"line-join": "round"
},
"style": {
"line-color": "@motorway_casing",
"line-width": "@motorway_link_casing_width"
},
"type": "line"
}, {
"id": "road_service_casing",
"source": "mapbox",
"source-layer": "road",
"filter": { "class": "service" },
"render": {
"line-cap": "round",
"line-join": "round"
},
"style": {
"line-color": "@street_casing",
"line-width": "@service_casing_width"
},
"type": "line"
}, {
"id": "road_street_casing",
"source": "mapbox",
"source-layer": "road",
"filter": { "class": ["street", "street_limited"], "$type": "LineString" },
"render": {
"line-cap": "round",
"line-join": "round"
},
"style": {
"line-color": "@street_casing",
"line-width": "@street_casing_width",
"line-opacity": "@street_casing_opacity"
},
"type": "line"
}, {
"id": "road_main_casing",
"source": "mapbox",
"source-layer": "road",
"filter": { "class": "main" },
"render": {
"line-cap": "round",
"line-join": "round"
},
"style": {
"line-color": "@motorway_casing",
"line-width": "@main_casing_width"
},
"type": "line"
}, {
"id": "road_motorway_casing",
"source": "mapbox",
"source-layer": "road",
"min-zoom": 5,
"filter": { "class": "motorway" },
"render": {
"line-cap": "round",
"line-join": "round"
},
"style": {
"line-color": "@motorway_casing",
"line-width": "@motorway_casing_width"
},
"type": "line"
}, {
"id": "road_path",
"source": "mapbox",
"source-layer": "road",
"filter": { "class": "path" },
"style": {
"line-color": "@path",
"line-dasharray": "@path_line_dasharray",
"line-width": "@path_width"
},
"type": "line"
}, {
"id": "road_motorway_link",
"ref": "road_motorway_link_casing",
"style": {
"line-color": "@motorway",
"line-width": "@motorway_link_width"
}
}, {
"id": "road_service",
"ref": "road_service_casing",
"style": {
"line-color": "@street",
"line-width": "@service_width"
}
}, {
"id": "road_street",
"ref": "road_street_casing",
"style": {
"line-color": "@street",
"line-width": "@street_width"
}
}, {
"id": "road_main",
"ref": "road_main_casing",
"style": {
"line-color": "@main",
"line-width": "@main_width"
}
}, {
"id": "road_motorway",
"ref": "road_motorway_casing",
"style": {
"line-color": "@motorway",
"line-width": "@motorway_width"
},
"type": "line"
}, {
"id": "road_major_rail",
"source": "mapbox",
"source-layer": "road",
"filter": { "class": "major_rail" },
"style": {
"line-color": "@rail",
"line-width": "@rail_width"
},
"type": "line"
}, {
"id": "road_major_rail_hatching",
"ref": "road_major_rail",
"style": {
"line-color": "@rail",
"line-dasharray": "@rail_hatch_line_dasharray",
"line-width": "@rail_hatch_width"
}
}, {
"id": "bridge_motorway_link_casing",
"source": "mapbox",
"source-layer": "bridge",
"filter": { "class": "motorway_link" },
"render": {
"line-join": "round"
},
"style": {
"line-color": "@motorway_casing",
"line-width": "@motorway_link_casing_width"
},
"type": "line"
}, {
"id": "bridge_motorway_casing",
"source": "mapbox",
"source-layer": "bridge",
"filter": { "class": "motorway" },
"render": {
"line-join": "round"
},
"style": {
"line-color": "@motorway_casing",
"line-width": "@motorway_casing_width"
},
"type": "line"
}, {
"id": "bridge_service_casing",
"source": "mapbox",
"source-layer": "bridge",
"filter": { "class": "service" },
"render": {
"line-join": "round"
},
"style": {
"line-color": "@street_casing",
"line-width": "@service_casing_width"
},
"type": "line"
}, {
"id": "bridge_street_casing",
"source": "mapbox",
"source-layer": "bridge",
"filter": { "class": ["street", "street_limited"] },
"render": {
"line-join": "round"
},
"style": {
"line-color": "@street_casing",
"line-width": "@street_casing_width",
"line-opacity": "@street_casing_opacity"
},
"type": "line"
}, {
"id": "bridge_main_casing",
"source": "mapbox",
"source-layer": "bridge",
"filter": { "class": "main" },
"render": {
"line-join": "round"
},
"style": {
"line-color": "@motorway_casing",
"line-width": "@main_casing_width"
},
"type": "line"
}, {
"id": "bridge_path",
"source": "mapbox",
"source-layer": "bridge",
"filter": { "class": "path" },
"style": {
"line-color": "@path",
"line-dasharray": "@path_line_dasharray",
"line-width": "@path_width"
},
"type": "line"
}, {
"id": "bridge_motorway_link",
"ref": "bridge_motorway_link_casing",
"style": {
"line-color": "@motorway",
"line-width": "@motorway_link_width"
}
}, {
"id": "bridge_service",
"ref": "bridge_service_casing",
"style": {
"line-color": "@street",
"line-width": "@service_width"
}
}, {
"id": "bridge_street",
"ref": "bridge_street_casing",
"style": {
"line-color": "@street",
"line-width": "@street_width"
}
}, {
"id": "bridge_main",
"ref": "bridge_main_casing",
"style": {
"line-color": "@main",
"line-width": "@main_width"
}
}, {
"id": "bridge_motorway",
"ref": "bridge_motorway_casing",
"style": {
"line-color": "@motorway",
"line-width": "@motorway_width"
}
}, {
"id": "bridge_major_rail",
"source": "mapbox",
"source-layer": "bridge",
"filter": { "class": "major_rail" },
"style": {
"line-color": "@rail",
"line-width": "@rail_width"
},
"type": "line"
}, {
"id": "bridge_major_rail_hatching",
"ref": "bridge_major_rail",
"style": {
"line-color": "@rail",
"line-dasharray": "@rail_hatch_line_dasharray",
"line-width": "@rail_hatch_width"
}
}, {
"id": "admin_level_3",
"source": "mapbox",
"source-layer": "admin",
"filter": {
"admin_level": {">=": 3},
"maritime": 0
},
"render": {
"line-join": "round"
},
"style": {
"line-color": "@admin",
"line-opacity": "@admin-opacity",
"line-dasharray": [10, 3],
"line-width": "@admin_level_3_width"
},
"type": "line"
}, {
"id": "admin_level_2",
"source": "mapbox",
"source-layer": "admin",
"filter": {
"admin_level": 2,
"disputed": 0,
"maritime": 0
},
"render": {
"line-cap": "round"
},
"style": {
"line-color": "@admin",
"line-opacity": "@admin-opacity",
"line-width": "@admin_level_2_width"
},
"type": "line"
}, {
"id": "admin_level_2_disputed",
"source": "mapbox",
"source-layer": "admin",
"filter": {
"admin_level": 2,
"disputed": 1,
"maritime": 0
},
"render": {
"line-cap": "round"
},
"style": {
"line-color": "@admin",
"line-opacity": "@admin-opacity",
"line-dasharray": [4, 4],
"line-width": "@admin_level_2_width"
},
"type": "line"
}, {
"id": "admin_level_3_maritime",
"source": "mapbox",
"source-layer": "admin",
"filter": {
"admin_level": {">=": 3},
"maritime": 1
},
"render": {
"line-join": "round"
},
"style": {
"line-color": "@water",
"line-opacity": "@admin-opacity",
"line-dasharray": [10, 3],
"line-width": "@admin_level_3_width"
},
"type": "line"
}, {
"id": "admin_level_2_maritime",
"source": "mapbox",
"source-layer": "admin",
"filter": {
"admin_level": 2,
"maritime": 1
},
"render": {
"line-cap": "round"
},
"style": {
"line-color": "@water",
"line-opacity": "@admin-opacity",
"line-width": "@admin_level_2_width"
},
"type": "line"
}, {
"id": "country_label_line",
"source": "mapbox",
"source-layer": "country_label_line",
"style": {
"line-color": "@text",
"line-opacity": 0.5
},
"type": "line"
}, {
"id": "country_label_1",
"source": "mapbox",
"source-layer": "country_label",
"filter": {
"scalerank": 1
},
"render": {
"text-font": "@sans_bd",
"text-field": "@name",
"text-max-width": 6.25,
"text-transform": "uppercase",
"text-max-size": 17
},
"style": {
"text-color": "@text",
"text-halo-color": "@text_halo",
"text-halo-width": 2,
"text-halo-blur": 1,
"text-size": {
"stops": [[2, 13], [4, 17]]
}
},
"type": "symbol"
}, {
"id": "country_label_2",
"source": "mapbox",
"source-layer": "country_label",
"filter": {
"scalerank": 2
},
"render": {
"text-font": "@sans_bd",
"text-field": "{name_en}",
"text-max-width": 6.25,
"text-transform": "uppercase",
"text-max-size": 17
},
"style": {
"text-color": "@text",
"text-halo-color": "@text_halo",
"text-halo-width": 2,
"text-halo-blur": 1,
"text-size": {
"stops": [[3, 13], [5, 17]]
}
},
"type": "symbol"
}, {
"id": "country_label_3",
"source": "mapbox",
"source-layer": "country_label",
"filter": {
"scalerank": 3
},
"render": {
"text-font": "@sans_bd",
"text-field": "@name",
"text-max-width": 6.25,
"text-transform": "uppercase",
"text-max-size": 17
},
"style": {
"text-color": "@text",
"text-halo-color": "@text_halo",
"text-halo-width": 2,
"text-halo-blur": 1,
"text-size": {
"stops": [[4, 13], [7, 17]]
}
},
"type": "symbol"
}, {
"id": "country_label_4",
"source": "mapbox",
"source-layer": "country_label",
"filter": {
"scalerank": {">=": 4}
},
"render": {
"text-font": "@sans_bd",
"text-field": "@name",
"text-max-width": 6.25,
"text-transform": "uppercase",
"text-max-size": 15
},
"style": {
"text-color": "@text",
"text-halo-color": "@text_halo",
"text-halo-width": 2,
"text-halo-blur": 1,
"text-size": {
"stops": [[5, 13], [6, 15]]
}
},
"type": "symbol"
}, {
"id": "marine_label_point_1",
"source": "mapbox",
"source-layer": "marine_label",
"filter": {"labelrank": 1, "$type": "Point"},
"render": {
"text-font": "@sans_it",
"text-field": "@name",
"text-max-size": 22,
"text-max-width": 5,
"text-letter-spacing": 0.2,
"text-line-height": 1.6,
"symbol-placement": "point",
"text-offset": [0, 2.4]
},
"style": {
"text-color": "@marine_text",
"text-halo-color": "@marine_text_halo",
"text-halo-width": 0.75,
"text-halo-blur": 0.75,
"text-size": {
"stops": [[3, 18], [4, 22]]
}
},
"type": "symbol"
}, {
"id": "marine_label_line_1",
"source": "mapbox",
"source-layer": "marine_label",
"filter": {"labelrank": 1, "$type": "LineString"},
"render": {
"text-font": "@sans_it",
"text-field": "@name",
"text-max-size": 14,
"text-letter-spacing": 0.2,
"symbol-placement": "line"
},
"style": {
"text-color": "@marine_text",
"text-halo-color": "@marine_text_halo",
"text-halo-width": 0.75,
"text-halo-blur": 0.75,
"text-size": {
"stops": [[3, 18], [4, 22]]
}
},
"type": "symbol"
}, {
"id": "marine_label_point_2",
"source": "mapbox",
"source-layer": "marine_label",
"filter": {"labelrank": 2, "$type": "Point"},
"render": {
"text-font": "@sans_it",
"text-field": "@name",
"text-max-size": 16,
"text-max-width": 5,
"text-letter-spacing": 0.2,
"symbol-placement": "point"
},
"style": {
"text-color": "@marine_text",
"text-halo-color": "@marine_text_halo",
"text-halo-width": 0.75,
"text-halo-blur": 0.75,
"text-size": {
"stops": [[3, 14], [4, 16]]
}
},
"type": "symbol"
}, {
"id": "marine_label_line_2",
"source": "mapbox",
"source-layer": "marine_label",
"filter": {"labelrank": 2, "$type": "LineString"},
"render": {
"text-font": "@sans_it",
"text-field": "@name",
"text-max-size": 16,
"text-letter-spacing": 0.2,
"symbol-placement": "line"
},
"style": {
"text-color": "@marine_text",
"text-halo-color": "@marine_text_halo",
"text-halo-width": 0.75,
"text-halo-blur": 0.75,
"text-size": {
"stops": [[3, 14], [4, 16]]
}
},
"type": "symbol"
}, {
"id": "marine_label_3",
"source": "mapbox",
"source-layer": "marine_label",
"filter": {"labelrank": 3, "$type": "Point"},
"render": {
"text-font": "@sans_it",
"text-field": "@name",
"text-max-size": 14,
"text-max-width": 5,
"text-letter-spacing": 0.2,
"symbol-placement": "point"
},
"style": {
"text-color": "@marine_text",
"text-halo-color": "@marine_text_halo",
"text-halo-width": 0.75,
"text-halo-blur": 0.75,
"text-size": {
"stops": [[3, 11], [4, 14]]
}
},
"type": "symbol"
}, {
"id": "marine_label_line_3",
"source": "mapbox",
"source-layer": "marine_label",
"filter": {"labelrank": 3, "$type": "LineString"},
"render": {
"text-font": "@sans_it",
"text-field": "@name",
"text-max-size": 14,
"text-letter-spacing": 0.2,
"symbol-placement": "line"
},
"style": {
"text-color": "@marine_text",
"text-halo-color": "@marine_text_halo",
"text-halo-width": 0.75,
"text-halo-blur": 0.75,
"text-size": {
"stops": [[3, 11], [4, 14]]
}
},
"type": "symbol"
}, {
"id": "marine_label_4",
"source": "mapbox",
"source-layer": "marine_label",
"filter": {"labelrank": {">=": 4}, "$type": "Point"},
"render": {
"text-font": "@sans_it",
"text-field": "@name",
"text-max-size": 12,
"text-max-width": 6,
"text-letter-spacing": 0.2,
"symbol-placement": "point"
},
"style": {
"text-color": "@marine_text",
"text-halo-color": "@marine_text_halo",
"text-halo-width": 0.75,
"text-halo-blur": 0.75,
"text-size": {
"stops": [[3, 11], [4, 12]]
}
},
"type": "symbol"
}, {
"id": "marine_label_line_4",
"source": "mapbox",
"source-layer": "marine_label",
"filter": {"labelrank": {">=": 4}, "$type": "LineString"},
"render": {
"text-font": "@sans_it",
"text-field": "@name",
"text-max-size": 12,
"text-letter-spacing": 0.2,
"symbol-placement": "line"
},
"style": {
"text-color": "@marine_text",
"text-halo-color": "@marine_text_halo",
"text-halo-width": 0.75,
"text-halo-blur": 0.75,
"text-size": {
"stops": [[3, 11], [4, 12]]
}
},
"type": "symbol"
}, {
"id": "place_label_city",
"source": "mapbox",
"source-layer": "place_label",
"filter": { "type": "city" },
"render": {
"text-font": "@sans_md",
"text-field": "@name",
"text-max-size": 24,
"text-max-width": 8
},
"style": {
"text-color": "#333",
"text-halo-color": "@text_halo",
"text-halo-width": 1.2,
"text-size": {
"base": 1.2,
"stops": [[7, 14], [11, 24]]
}
},
"type": "symbol"
}, {
"id": "place_label_town",
"source": "mapbox",
"source-layer": "place_label",
"filter": { "type": "town" },
"render": {
"text-font": "@sans",
"text-field": "@name",
"text-max-size": 24,
"text-max-width": 8
},
"style": {
"text-color": "#333",
"text-halo-color": "@text_halo",
"text-halo-width": 1.2,
"text-size": {
"base": 1.2,
"stops": [[10, 14], [15, 24]]
}
},
"type": "symbol"
}, {
"id": "place_label_village",
"source": "mapbox",
"source-layer": "place_label",
"filter": { "type": "village" },
"render": {
"text-font": "@sans",
"text-field": "@name",
"text-max-size": 22,
"text-max-width": 8
},
"style": {
"text-color": "#333",
"text-halo-color": "@text_halo",
"text-halo-width": 1.2,
"text-size": {
"base": 1.2,
"stops": [[10, 12], [15, 22]]
}
},
"type": "symbol"
}, {
"id": "road_label_highway_shields",
"source": "mapbox",
"source-layer": "road_label",
"filter": {"class": "motorway", "reflen": [1,2,3,4,5,6]},
"render": {
"symbol-placement": "line",
"symbol-min-distance": 500,
"icon-image": "motorway_{reflen}",
"icon-max-size": 1,
"text-field": "{ref}",
"text-font": "@sans_bd",
"text-max-size": 11,
"text-rotation-alignment": "viewport",
"icon-rotation-alignment": "viewport"
},
"style": {
"text-color": "#765",
"text-size": 11
},
"type": "symbol"
}, {
"id": "road_label",
"source": "mapbox",
"source-layer": "road_label",
"filter": { "$type": "LineString" },
"render": {
"text-font": "@sans",
"text-field": "@name",
"text-max-size": 13,
"symbol-placement": "line"
},
"style": {
"text-color": "#765",
"text-halo-color": "#fff",
"text-halo-width": 1,
"text-halo-blur": 0.5,
"text-size": {
"stops": [[13, 12], [14, 13]]
}
},
"type": "symbol"
}, {
"id": "place_label_other",
"source": "mapbox",
"source-layer": "place_label",
"filter": { "type": ["hamlet", "suburb", "neighbourhood"] },
"render": {
"text-font": "@sans_bd",
"text-transform": "uppercase",
"text-letter-spacing": 0.1,
"text-field": "@name",
"text-max-size": 14,
"text-max-width": 9
},
"style": {
"text-color": "#633",
"text-halo-color": "@text_halo",
"text-halo-width": 1.2,
"text-size": {
"base": 1.2,
"stops": [[12, 10], [15, 14]]
}
},
"type": "symbol"
}, {
"id": "poi_label_1",
"source": "mapbox",
"source-layer": "poi_label",
"filter": { "$type": "Point", "scalerank": 1 },
"render": {
"icon-image": "{maki}-12",
"text-font": "@sans_md",
"text-field": "@name",
"text-max-size": 12,
"text-max-width": 9,
"text-padding": 2,
"text-offset": [0, 0.6],
"text-vertical-align": "top"
},
"style": {
"text-color": "@poi_text",
"text-size": 12,
"text-halo-color": "@poi_text_halo",
"text-halo-width": 1,
"text-halo-blur": 0.5
},
"min-zoom": 13,
"type": "symbol"
}, {
"id": "poi_label_2",
"source": "mapbox",
"source-layer": "poi_label",
"filter": { "$type": "Point", "scalerank": 2 },
"render": {
"icon-image": "{maki}-12",
"text-font": "@sans_md",
"text-field": "@name",
"text-max-size": 12,
"text-max-width": 9,
"text-padding": 2,
"text-offset": [0, 0.6],
"text-vertical-align": "top"
},
"style": {
"text-color": "@poi_text",
"text-size": 12,
"text-halo-color": "@poi_text_halo",
"text-halo-width": 1,
"text-halo-blur": 0.5
},
"min-zoom": 14,
"type": "symbol"
}, {
"id": "poi_label_3",
"source": "mapbox",
"source-layer": "poi_label",
"filter": { "$type": "Point", "scalerank": 3 },
"render": {
"icon-image": "{maki}-12",
"text-font": "@sans_md",
"text-field": "@name",
"text-max-size": 12,
"text-max-width": 9,
"text-padding": 2,
"text-offset": [0, 0.6],
"text-vertical-align": "top"
},
"style": {
"text-color": "@poi_text",
"text-size": 12,
"text-halo-color": "@poi_text_halo",
"text-halo-width": 1,
"text-halo-blur": 0.5
},
"min-zoom": 15,
"type": "symbol"
}, {
"id": "poi_label_4",
"source": "mapbox",
"source-layer": "poi_label",
"filter": { "$type": "Point", "scalerank": 4 },
"render": {
"icon-image": "{maki}-12",
"text-font": "@sans_md",
"text-field": "@name",
"text-max-size": 12,
"text-max-width": 9,
"text-padding": 2,
"text-offset": [0, 0.6],
"text-vertical-align": "top"
},
"style": {
"text-color": "@poi_text",
"text-size": 12,
"text-halo-color": "@poi_text_halo",
"text-halo-width": 1,
"text-halo-blur": 0.5
},
"min-zoom": 16,
"type": "symbol"
}, {
"id": "poi_label_other",
"source": "mapbox",
"source-layer": "poi_label",
"filter": { "$type": "Point", "scalerank": {">=": 5} },
"render": {
"icon-image": "{maki}-12",
"text-font": "@sans_md",
"text-field": "@name",
"text-max-size": 12,
"text-max-width": 9,
"text-padding": 2,
"text-offset": [0, 0.6],
"text-vertical-align": "top"
},
"style": {
"text-color": "@poi_text",
"text-size": 12,
"text-halo-color": "@poi_text_halo",
"text-halo-width": 1,
"text-halo-blur": 0.5
},
"min-zoom": 17,
"type": "symbol"
}, {
"id": "water_label",
"source": "mapbox",
"source-layer": "water_label",
"filter": { "$type": "Point" },
"render": {
"text-font": "@sans_it",
"text-field": "@name",
"text-max-size": 12,
"text-max-width": 5
},
"style": {
"text-size": 12,
"text-color": "@marine_text",
"text-halo-width": 1.5,
"text-halo-color": "@marine_text_halo"
},
"type": "symbol"
}]
}