Created
March 2, 2023 12:22
-
-
Save bertrandmd/f9e4b8b37a1d4ccfec1f91f413b7a806 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": 8, | |
"name": "sncf-gare&co-v1", | |
"metadata": {"maputnik:renderer": "mbgljs"}, | |
"sources": { | |
"gare": { | |
"type": "geojson", | |
"data": "https://features.getwemap.com/geojsons/paris-gare-de-lyon-v3.geojson" | |
} | |
}, | |
"sprite": "https://features.getwemap.com/sprites/paris-gare-de-lyon-test3", | |
"glyphs": "https://orangemug.github.io/font-glyphs/glyphs/{fontstack}/{range}.pbf", | |
"layers": [ | |
{ | |
"id": "station", | |
"type": "fill", | |
"source": "gare", | |
"filter": ["all", ["==", "public_transport", "station"]], | |
"layout": {"visibility": "visible"}, | |
"paint": { | |
"fill-color": "#AFB1AF", | |
"fill-outline-color": "rgba(255, 255, 255, 1)" | |
} | |
}, | |
{ | |
"id": "area", | |
"type": "fill", | |
"source": "gare", | |
"filter": ["all", ["==", "level", "0"], ["==", "indoor", "area"]], | |
"layout": {"visibility": "visible"}, | |
"paint": { | |
"fill-color": "rgba(255, 255, 255, 1)", | |
"fill-outline-color": "rgba(0, 0, 0, 1)" | |
} | |
}, | |
{ | |
"id": "platform", | |
"type": "fill", | |
"source": "gare", | |
"filter": ["all", ["==", "level", "0"], ["==", "railway", "platform"]], | |
"layout": {"visibility": "visible"}, | |
"paint": { | |
"fill-color": "rgba(255, 255, 255, 1)", | |
"fill-outline-color": "rgba(0, 0, 0, 1)" | |
} | |
}, | |
{ | |
"id": "no-access", | |
"type": "fill", | |
"source": "gare", | |
"filter": [ | |
"all", | |
["==", "level", "0"], | |
["==", "indoor", "room"], | |
["==", "access", "no"] | |
], | |
"layout": {"visibility": "visible"}, | |
"paint": { | |
"fill-color": "#9F9F94", | |
"fill-outline-color": "rgba(255, 255, 255, 1)" | |
} | |
}, | |
{ | |
"id": "waiting_area", | |
"type": "fill", | |
"source": "gare", | |
"filter": [ | |
"all", | |
["==", "level", "0"], | |
["==", "amenity", "waiting_area"] | |
], | |
"layout": {"visibility": "visible"}, | |
"paint": { | |
"fill-color": "#FCF39A", | |
"fill-outline-color": "rgba(255, 255, 255, 1)" | |
} | |
}, | |
{ | |
"id": "shop", | |
"type": "fill", | |
"source": "gare", | |
"filter": [ | |
"all", | |
["==", "level", "0"], | |
["==", "indoor", "room"], | |
["has", "shop"] | |
], | |
"layout": {"visibility": "visible"}, | |
"paint": { | |
"fill-color": "#EA4933", | |
"fill-outline-color": "rgba(255, 255, 255, 1)" | |
} | |
}, | |
{ | |
"id": "restauration", | |
"type": "fill", | |
"source": "gare", | |
"filter": [ | |
"all", | |
["==", "level", "0"], | |
["==", "indoor", "room"], | |
["in", "amenity", "fast_food", "cafe", "restaurant"] | |
], | |
"layout": {"visibility": "visible"}, | |
"paint": { | |
"fill-color": "#47AAD7", | |
"fill-outline-color": "rgba(255, 255, 255, 1)" | |
} | |
}, | |
{ | |
"id": "rail", | |
"type": "line", | |
"source": "gare", | |
"filter": ["all", ["==", "railway", "rail"], ["==", "level", "0"]], | |
"layout": {"visibility": "visible"}, | |
"paint": { | |
"line-gap-width": {"stops": [[17, 0], [18, 3], [20, 10]]}, | |
"line-width": {"stops": [[12, 0], [16, 0.3], [18, 1], [20, 3]]}, | |
"line-color": { | |
"stops": [ | |
[16, "rgba(129, 128, 128, 1)"], | |
[18, "rgba(51, 50, 50, 1)"], | |
[20, "#000000"] | |
] | |
} | |
} | |
}, | |
{ | |
"id": "toilets", | |
"type": "fill", | |
"source": "gare", | |
"filter": ["all", ["==", "level", "0"], ["==", "amenity", "toilets"]], | |
"layout": {"visibility": "visible"}, | |
"paint": { | |
"fill-color": "#F9C937", | |
"fill-outline-color": "rgba(255, 255, 255, 1)" | |
} | |
}, | |
{ | |
"id": "escalators", | |
"type": "line", | |
"source": "gare", | |
"filter": [ | |
"all", | |
["==", "highway", "steps"], | |
["in", "conveying", "yes", "backward", "forward"], | |
["in", "level", "-1;0", "0;1"] | |
], | |
"layout": {"visibility": "visible"}, | |
"paint": { | |
"line-color": "#868787", | |
"line-width": {"stops": [[17, 2], [21, 60]]} | |
} | |
}, | |
{ | |
"id": "escalators-dash", | |
"type": "line", | |
"source": "gare", | |
"filter": [ | |
"all", | |
["==", "highway", "steps"], | |
["in", "conveying", "yes", "backward", "forward"], | |
["in", "level", "-1;0", "0;1"] | |
], | |
"layout": {"visibility": "visible"}, | |
"paint": { | |
"line-color": "#C3C2B8", | |
"line-width": {"stops": [[17, 2], [21, 50]]}, | |
"line-dasharray": {"stops": [[17, [0.2, 0.04]], [21, [0.2, 0.04]]]} | |
} | |
}, | |
{ | |
"id": "stairs", | |
"type": "line", | |
"source": "gare", | |
"filter": [ | |
"all", | |
["==", "highway", "steps"], | |
["!in", "conveying", "yes", "backward", "forward"], | |
["in", "level", "-1;0", "0;1"] | |
], | |
"layout": {"visibility": "visible"}, | |
"paint": { | |
"line-color": "#828383", | |
"line-width": {"stops": [[17, 2], [21, 60]]} | |
} | |
}, | |
{ | |
"id": "stairs-dash", | |
"type": "line", | |
"source": "gare", | |
"filter": [ | |
"all", | |
["==", "highway", "steps"], | |
["!in", "conveying", "yes", "backward", "forward"], | |
["in", "level", "-1;0", "0;1"] | |
], | |
"layout": { | |
"line-cap": "butt", | |
"line-join": "miter", | |
"visibility": "visible", | |
"line-miter-limit": 2 | |
}, | |
"paint": { | |
"line-color": "rgba(255, 255, 255, 1)", | |
"line-width": {"stops": [[17, 2], [21, 50]]}, | |
"line-dasharray": {"stops": [[17, [0.2, 0.04]], [21, [0.2, 0.04]]]}, | |
"line-translate-anchor": "map" | |
} | |
}, | |
{ | |
"id": "fence", | |
"type": "line", | |
"source": "gare", | |
"filter": [ | |
"all", | |
["==", "barrier", "fence"], | |
["!in", "@id", "way/1059629309"], | |
["==", "level", "0"] | |
], | |
"layout": {"visibility": "visible"}, | |
"paint": {"line-color": "#828182"} | |
}, | |
{ | |
"id": "turnstile", | |
"type": "symbol", | |
"source": "gare", | |
"filter": ["all", ["==", "barrier", "turnstile"], ["==", "level", "0"]], | |
"layout": { | |
"icon-image": "entrance-alt1", | |
"icon-allow-overlap": true, | |
"icon-size": {"stops": [[17, 0.1], [18, 0.5], [20, 1]]}, | |
"icon-rotation-alignment": "map", | |
"icon-ignore-placement": true, | |
"visibility": "visible" | |
} | |
}, | |
{ | |
"id": "voies", | |
"type": "symbol", | |
"source": "gare", | |
"filter": ["all", ["==", "level", "0"], ["has", "local_ref"]], | |
"layout": { | |
"icon-image": "{local_ref}", | |
"icon-size": {"stops": [[17, 0.03], [19, 0.15], [20, 0.26], [21, 0.6]]}, | |
"icon-allow-overlap": true, | |
"icon-rotation-alignment": "viewport", | |
"icon-ignore-placement": true, | |
"visibility": "visible", | |
"icon-pitch-alignment": "auto" | |
} | |
}, | |
{ | |
"id": "escalators-poi", | |
"type": "symbol", | |
"source": "gare", | |
"filter": [ | |
"all", | |
["==", "highway", "steps"], | |
["in", "conveying", "yes", "backward", "forward"], | |
["in", "level", "-1;0", "0;1"] | |
], | |
"layout": { | |
"text-field": "", | |
"icon-image": "escalator", | |
"icon-size": {"stops": [[14, 0.04], [19, 0.12]]}, | |
"icon-allow-overlap": true, | |
"icon-ignore-placement": false, | |
"visibility": "visible" | |
} | |
}, | |
{ | |
"id": "stairs-poi", | |
"type": "symbol", | |
"source": "gare", | |
"filter": [ | |
"all", | |
["==", "highway", "steps"], | |
["!in", "conveying", "yes", "backward", "forward"], | |
["in", "level", "-1;0", "0;1"] | |
], | |
"layout": { | |
"text-field": "", | |
"icon-image": "stairs", | |
"icon-size": {"stops": [[14, 0.04], [19, 0.12]]}, | |
"icon-allow-overlap": true, | |
"icon-ignore-placement": false, | |
"visibility": "visible" | |
} | |
}, | |
{ | |
"id": "elevator", | |
"type": "fill", | |
"source": "gare", | |
"filter": ["all", ["==", "indoor", "room"], ["==", "room", "elevator"]], | |
"layout": {"visibility": "visible"}, | |
"paint": {"fill-color": "#C9C8C3", "fill-outline-color": "#7D7C7B"} | |
}, | |
{ | |
"id": "elevators-poi", | |
"type": "symbol", | |
"source": "gare", | |
"filter": ["all", ["==", "indoor", "room"], ["==", "room", "elevator"]], | |
"layout": { | |
"text-field": "", | |
"icon-size": {"stops": [[14, 0.04], [19, 0.12]]}, | |
"icon-allow-overlap": true, | |
"icon-ignore-placement": false, | |
"icon-image": "elevator" | |
} | |
}, | |
{ | |
"id": "trees", | |
"type": "symbol", | |
"source": "gare", | |
"filter": ["all", ["==", "natural", "tree"]], | |
"layout": { | |
"icon-image": "tree", | |
"icon-size": {"stops": [[15, 0.01], [17, 0.1], [19, 0.5]]}, | |
"icon-rotation-alignment": "viewport", | |
"icon-keep-upright": true, | |
"icon-ignore-placement": false, | |
"icon-allow-overlap": true, | |
"symbol-placement": "point", | |
"symbol-z-order": "auto", | |
"symbol-avoid-edges": false | |
} | |
} | |
], | |
"id": "n5aflog2k" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment