|
{ |
|
"version": 7, |
|
"name": "light-colors", |
|
"constants": { |
|
"@land": "#eee", |
|
"@water": "#cfd3d9", |
|
"@forest": "#cdd7c2", |
|
"@sand": "#d0bba3", |
|
"@road-major": "#c9c9c9", |
|
"@motorway-width": { |
|
"base": 1, |
|
"stops": [[3, 0.5], [9, 0.75], [20, 5]] |
|
} |
|
}, |
|
"sources": { |
|
"mapbox": { |
|
"url": "mapbox://mapbox.mapbox-streets-v6", |
|
"type": "vector" |
|
} |
|
}, |
|
"sprite": "https://www.mapbox.com/mapbox-gl-styles/sprites/sprite", |
|
"glyphs": "mapbox://fontstack/{fontstack}/{range}.pbf", |
|
"layers": [{ |
|
"id": "background", |
|
"type": "background", |
|
"layout": { |
|
"visibility": "visible" |
|
}, |
|
"paint": { |
|
"background-color": "@land" |
|
} |
|
}, { |
|
"id": "landuse_park", |
|
"type": "fill", |
|
"layout": { |
|
"visibility": "visible" |
|
}, |
|
"source": "mapbox", |
|
"source-layer": "landuse", |
|
"filter": ["all", ["==", "class", "park"], ["==", "$type", "Polygon"]], |
|
"paint": { |
|
"fill-color": "@forest" |
|
} |
|
}, { |
|
"id": "landuse_sand", |
|
"type": "fill", |
|
"layout": { |
|
"visibility": "visible" |
|
}, |
|
"source": "mapbox", |
|
"source-layer": "landuse", |
|
"filter": ["all", ["==", "class", "sand"], ["==", "$type", "Polygon"]], |
|
"paint": { |
|
"fill-color": "@sand" |
|
} |
|
}, { |
|
"id": "water", |
|
"type": "fill", |
|
"source": "mapbox", |
|
"source-layer": "water", |
|
"layout": { |
|
"visibility": "visible" |
|
}, |
|
"paint": { |
|
"fill-color": "@water" |
|
} |
|
}, { |
|
"id": "waterway", |
|
"type": "line", |
|
"source": "mapbox", |
|
"source-layer": "waterway", |
|
"filter": ["all", ["==", "$type", "LineString"], ["in", "class", "river", "canal"]], |
|
"paint": { |
|
"line-color": "@water", |
|
"line-width": { |
|
"base": 1, |
|
"stops": [[6, 0.25], [20, 6]] |
|
} |
|
} |
|
}, { |
|
"id": "road-motorway", |
|
"type": "line", |
|
"source": "mapbox", |
|
"source-layer": "road", |
|
"minzoom": 0, |
|
"filter": ["all"], |
|
"layout": { |
|
"line-cap": "round", |
|
"line-join": "round", |
|
"visibility": "visible" |
|
}, |
|
"paint": { |
|
"line-color": "@road-major", |
|
"line-width": "@motorway-width" |
|
} |
|
}] |
|
} |