anvaka / city-roads

Visualization of all roads within any city
https://anvaka.github.io/city-roads/
MIT License
6k stars 445 forks source link

Can't see smaller areas (localities) osm_type: way #12

Closed zack6849 closed 4 years ago

zack6849 commented 4 years ago

Hi There!

I tried to search for a smaller town in my area, "Valrico, Florida" and it shows results, and is a city, but won't work.

I thought ok, maybe it's too small, i'll go for brandon florida, which also doesn't work.

LNMN5D0qRDeFe OYJUgdL64IpFZ

These are both "localities", is that something you'd consider implementing, if it's even possible?

anvaka commented 4 years ago

I'm displaying only relationship osm_types in the dropdown. relationship type defines accurate boundaries of a region, so I went with it in the initial implementation.

However this causes problems, like you've described here and like others noted in https://github.com/anvaka/city-roads/issues/7.

I'm playing with proposal from @leighghunt to fallback to bounding box. For the Valrico, Florida it would render this:

image

Would this map make more sense in your use case?

zack6849 commented 4 years ago

It would, thanks for the update

anvaka commented 4 years ago

Thank you!

This was pushed. Please let me know if you find something missing: https://anvaka.github.io/city-roads/