Skip to content

Instantly share code, notes, and snippets.

@HarelM
Last active July 11, 2023 07:51
Show Gist options
  • Save HarelM/5350902c7245a34ad1eaf69d02b732d0 to your computer and use it in GitHub Desktop.
Save HarelM/5350902c7245a34ad1eaf69d02b732d0 to your computer and use it in GitHub Desktop.
{
"version": 8,
"name": "Overpass-overlay-example",
"sources": {
"overpass-points": {
"type": "geojson",
"data": "overpass://Q/nw%0A%20%20%5Bnatural%3D%22tree%22%5D%0A%20%20(area%3A3606195356)%3B%0Aout%20meta%20geom%3B"
}
},
"layers": [
{
"id": "overpass-point",
"type": "circle",
"source": "overpass-points",
"paint": {
"circle-radius": 10,
"circle-color": "#f22",
"circle-stroke-width": 2,
"circle-opacity": 0.3,
"circle-stroke-color": "#d0f",
"circle-stroke-opacity": 0.7
}
},
{
"id": "water-drinking",
"type": "symbol",
"source": "overpass-points",
"minzoom": 12,
"layout": {
"text-field": [
"coalesce",
["get", "name:he"],
["get", "name_en"],
["get", "name"]
],
"text-font": ["Open Sans Cond Bold"],
"text-anchor": "top",
"text-offset": [0, 0.5],
"text-size": 18,
"text-letter-spacing": 0.2,
"text-optional": true
},
"paint": {
"text-color": "#125595",
"text-halo-color": "white",
"text-halo-width": 1.5,
"text-halo-blur": 1.5
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment