Skip to content

Instantly share code, notes, and snippets.

@h8nor
Last active September 28, 2023 18:50
Show Gist options
  • Save h8nor/c6527bc10fbb277dbaeed0f434189c37 to your computer and use it in GitHub Desktop.
Save h8nor/c6527bc10fbb277dbaeed0f434189c37 to your computer and use it in GitHub Desktop.
/*
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