-
Notifications
You must be signed in to change notification settings - Fork 836
"The only pub for 100 miles" (dynamic zoom) #1906
Description
Based on talking to Artem Pavlenko and Andy Allen at State of the Map USA 2013:
This issue is for support of dynamic zoom. It is motivated by mapping in the USA West Coast where there are large arid areas that are desolate in real life, but even more desolate on OpenStreetMap.
The proposal is to raise the minimum zoom level of POI features in sparse areas, worldwide. For example here is a virtually invisible feature that happens to be the only radiator or drinking water for at least 50 miles in any direction:
http://www.openstreetmap.org/?lat=42.7678&lon=-117.7278&zoom=12&layers=M
Or you could imagine the only pub in the district... should it not appear a bit more prominently? How about the only farm stand along a 50 mile section of highway?
I can think of several was to make this happen:
-
Before rendering each tile count the number of features that will render. If it is less than a certain threshold add one to the maximum zoom level for each POI. Lather rise repeat until there is something interesting to map. Render everything that overlaps the edge even if the adjacent tile is full of POI's.
-
Batch process all the PIO's in the planet file and calculate their nearest neighbour of the same type. Calculate a zoom level to pass to mapnik.
-
Create a feature heat map. At render time set zoom thresholds based on the heat map results (e.g. http://www.openheatmap.com/ )
Attempting this for roads would be too messy. I suggest this only for POI's and perhaps for small tagged building outlines.
Note that method #2 may elevate the prominence of otherwise obscure features, simply because there are few of them. Option #1 could be used the other way: to tone down the map in dense urban cores.
