Last active
September 28, 2023 18:50
-
-
Save h8nor/c6527bc10fbb277dbaeed0f434189c37 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
/* | |
This is an example Overpass query. | |
You can find more examples on link | |
https://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_QL | |
*/ | |
[bbox:{{bbox}}][out:json][timeout:25]; | |
( | |
rel[route=subway]; | |
(._;>;); | |
); | |
out geom; | |
{{style: | |
way[colour] { | |
fill-color: eval("tag('colour')"); | |
fill-opacity: 0.45; | |
color: eval("tag('colour')"); | |
opacity: 0.9; | |
} | |
node[railway] { | |
fill-color: eval("tag('colour')"); | |
fill-opacity: 0.45; | |
color: eval("tag('colour')"); | |
opacity: 0.9; | |
text: name; | |
} | |
node[!railway], node[railway=switch] { | |
fill-color: transparent; | |
fill-opacity: none; | |
} | |
}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment