Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display pin instead of area #2309

Open
CharliePlett opened this issue Dec 1, 2024 · 2 comments
Open

Display pin instead of area #2309

CharliePlett opened this issue Dec 1, 2024 · 2 comments
Labels

Comments

@CharliePlett
Copy link

I have a uMap that is querying live data from OSM, but when it retrieves an area, like a building instead of a node, then it only displays the building. That makes it very hard to see from low zoom levels. And it is also inconsistent when I'm querying churches, sometimes returning building outlines and other times the pins.

I was thinking maybe you could have like a checkbox in each layer to toggle displaying areas as pins.

Maybe there is a feature like this somewhere? Maybe i could just modify my query? This is my current query https://overpass-api.de/api/interpreter?data=[out:json];nwr[denomination=mennonite][amenity=place_of_worship]({south},{west},{north},{east});out geom;

@yohanboniface
Copy link
Member

out center instead of out geom should do the trick, see https://wiki.openstreetmap.org/wiki/Overpass_API/Language_Guide#Geometry_attribute_(center,_center) for caveats.

@clwacker
Copy link

Thanks for the tip. It works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants