Skip to content

Instantly share code, notes, and snippets.

@robgaston
Last active August 29, 2015 14:21
Show Gist options
  • Save robgaston/ef5e1aeea1e3aaa42a38 to your computer and use it in GitHub Desktop.
Save robgaston/ef5e1aeea1e3aaa42a38 to your computer and use it in GitHub Desktop.
testing a mapbox gl style...
{
"version": 7,
"name": "Mapbox Outdoors",
"constants": {
"@name": "{name_en}",
"@sans_lt": "Open Sans Regular, Arial Unicode MS Regular, Arial Unicode MS Bold",
"@sans": "Open Sans Semibold, Arial Unicode MS Bold",
"@sans_italic": "Open Sans Semibold Italic, Arial Unicode MS Bold",
"@land": "#808080",
"@water": "#808080",
"@water_dark": "#808080",
"@crop": "#808080",
"@grass": "#808080",
"@scrub": "#808080",
"@wood": "#cee2bd",
"@snow": "#f4f8ff",
"@rock": "#ddd",
"@sand": "#ffd",
"@cemetery": "#edf4ed",
"@pitch": "#fff",
"@park": "#d4e4bc",
"@piste": "blue",
"@school": "#e8dfe0",
"@hospital": "#f8eee0",
"@parking": "#bfbfbf",
"@builtup": "#f6faff",
"@case": "#fff",
"@motorway": "#cda0a0",
"@main": "#ddc0b9",
"@street": {
"stops": [[12.5, "#d9d5c6"], [13, "#fff"]]
},
"@street_case": "#d9d5c6",
"@service": "#faf7f0",
"@text": "#666",
"@text_stroke": "rgba(255,255,255,0.8)",
"@text_halo": "rgba(255,255,255,0.8)",
"@country_text": "#000",
"@marine_text": "#a0bdc0",
"@water_text": "#185869",
"@land_night": "#017293",
"@water_night": "#103",
"@water_dark_night": "#003366",
"@crop_night": "#178d96",
"@grass_night": "#23948a",
"@scrub_night": "#31a186",
"@wood_night": "#45b581",
"@park_night": "#51bd8b",
"@snow_night": "#5ad9fe",
"@rock_night": "#999",
"@sand_night": "#437162",
"@cemetery_night": "#218c96",
"@pitch_night": "rgba(255,255,255,0.2)",
"@school_night": "#01536a",
"@hospital_night": "#015e7a",
"@builtup_night": "#014b60",
"@admin_night": "#ffb680",
"@text_night": "#fff",
"@text_water_night": "#0186ac",
"@text_stroke_night": "#103",
"@text2_stroke_night": "rgba(1,69,89,0.8)",
"@case_night": "#015e7a",
"@street_case_night": "#015b76",
"@motorway_night": "#bbdde7",
"@main_night": "#64b2c9",
"@street_night": "#0186ac",
"@service_night": "#017ea2",
"@contour_night": "#ffff80",
"@river_canal_width": {
"stops": [[10, 0.5], [20, 6]]
},
"@stream_width": {
"stops": [[13, 0.75], [20, 4]]
},
"@motorway_width": {
"base": 1.25,
"stops": [[9, 1], [20, 30]]
},
"@motorway_casing_width": {
"stops": [[9, 0.9], [11, 1], [14, 1.5]]
},
"@motorway_link_width": {
"base": 1.2,
"stops": [[10, 1], [20, 7]]
},
"@motorway_link_casing_width": {
"stops": [[11, 0.8], [16, 1]]
},
"@main_width": {
"base": 1.3,
"stops": [[11, 1], [20, 28]]
},
"@main_casing_width": {
"stops": [[11, 1], [15, 1.5]]
},
"@street_width": {
"base": 1.3,
"stops": [[12.5, 1], [20, 12]]
},
"@street_casing_width": {
"stops": [[12.5, 0], [13, 1], [15, 1.5]]
},
"@service_width": {
"base": 1.3,
"stops": [[15, 2], [20, 7]]
},
"@service_casing_width": 1,
"@path_width": {
"base": 1.3,
"stops": [[15, 1.5], [20, 2]]
},
"@path_bg_width": {
"base": 1.3,
"stops": [[15, 4], [20, 5]]
},
"@path_steps_width": {
"base": 1.3,
"stops": [[15, 1.5], [20, 10]]
},
"@path_dasharray_primary": [3, 1],
"@path_dasharray_secondary": [5, 1.5],
"@tunnel_dasharray": [4, 1.5],
"@major_rail_hatching_width": {
"stops": [[12, 5], [20, 10]]
},
"@major_rail_hatching_dasharray": [0.05, 10],
"@aerialway_width": {
"base": 1.2,
"stops": [[12, 0.8], [20, 5]]
},
"@aerialway_casing_width": {
"stops": [[12, 0.6], [17, 1]]
},
"@aerialway_hatching_width": {
"base": 1.2,
"stops": [[12, 5], [20, 15]]
},
"@runway_width": {
"base": 1.15,
"stops": [[10, 2], [20, 32]]
},
"@taxiway_width": {
"base": 1.15,
"stops": [[11, 0.2], [20, 8]]
},
"@admin_l2_width": {
"stops": [[2, 0.6], [20, 8]]
},
"@admin_l3_width": {
"stops": [[5, 0.6], [20, 6]]
},
"@fence_width": {
"stops": [[16, 0.6], [20, 1.4]]
},
"@hedge_width": {
"base": 0.9,
"stops": [[15, 0.6], [20, 2]]
},
"@barrier_line_land_width": {
"base": 1.9,
"stops": [[13, 0.4], [20, 48]]
},
"@country_label_size": {
"stops": [[2, 11], [8, 20]]
},
"@road_label_1_size": {
"base": 1.3,
"stops": [[12, 11], [17, 18]]
},
"@road_label_2_size": {
"base": 1.3,
"stops": [[12, 11], [17, 16]]
},
"@road_label_3_size": {
"base": 1.3,
"stops": [[14, 10], [17, 14]]
},
"@poi_label_1-2_size": {
"stops": [[14, 10], [16, 12]]
},
"@poi_label_3_size": {
"stops": [[15, 10], [16, 11]]
}
},
"sources": {
"mapbox": {
"type": "vector",
"url": "mapbox://mapbox.mapbox-terrain-v2,mapbox.mapbox-streets-v6"
}
},
"sprite": "https://www.mapbox.com/mapbox-gl-styles/sprites/outdoors",
"glyphs": "mapbox://fontstack/{fontstack}/{range}.pbf",
"layers": [{
"id": "background",
"type": "background",
"paint": {
"background-color": "@land"
},
"paint.night": {
"background-color": "@land_night"
}
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment