tilezen / vector-datasource

Tilezen vector tile service - OpenStreetMap data in several formats
https://www.nextzen.org/
Other
507 stars 119 forks source link

Include feature area in POI zoom calculation #195

Closed nvkelso closed 9 years ago

nvkelso commented 9 years ago

Today we show all features from a kind class at the same initial zoom, but this results in a boring and busy, poorly balanced map.

For instance, we start showing hospitals first, but we end up showing a mix a large & important hospitals and small and less important clinics at the same initial zoom. Instead only the large & important hospitals should be shown at first, and then the smaller, less important clinics should be added progressively in later zooms.

Many POIs are technically labeling landuse AOIs and building featuers and we can leverage the parent's area to throttle the POIs zoom (first adopting the same landuse / building area thresholds and then refining them to be better for POIs – for instance, we see some delta between landuse area, landuse-labels area, and building area for calculating label visibility today.

nvkelso commented 9 years ago

I'm seeing some more POIs, earlier (good), but we need more and earlier – at least in San Francisco. Let's try adjusting the area thresholds &/or the zoom offsets in the earlier #222 PR.

zerebubuth commented 9 years ago

Here's some stuff I've pulled out. Note that the text is all busy because I've enabled a text label for every single point, so you can see everything that's in the data. I've also disabled all the landuse areas, because I haven't merged the logic for those yet.

195-sf-z12

195-sf-z13

195-sf-z14

zerebubuth commented 9 years ago

@nvkelso, it would be really helpful if you could give me some feedback on the images above and whether stuff is coming in too early, too late, or the wrong stuff is visible, etc... Just bear in mind that it doesn't include any of the landuse area centroids - I'm working on that and hopefully will have some screenshots of that soon.

nvkelso commented 9 years ago

Generally this is a huge improvement, thank you!

Should we roll this out incrementally? (What you have already seems good enough to move to prod if you think the code is good enough.)

I've marked up the images. Here's the summary, images down farther.

Please make these types of features visible earlier, as annotated on the images:

  1. Big churches
  2. Museums
  3. Convention centers
  4. Rail stations (earlier than subway stations)
  5. Subway stations (they are often underground)
  6. Large shopping centers
  7. Large marina
  8. City halls
  9. Important towers
  10. Large named buildings (that's should be tracked separately, examples Cow Palace and Ferry Building)
  11. Sometimes there are duplicate icons for a university (there should only be one until the feature is much larger / better zoom).
  12. Sometimes other features inside a university/hospital AOI get shown as an icon at low zooms (only one should be shown until later).

We should probably show screenshots of New York and London, too.

untitled 2

untitled 3

untitled 4

zerebubuth commented 9 years ago

Latest screenshots, based on the work in #265.

San Francisco

Zoom 11

195-z11

Zoom 12

There's a high density of POIs around Golden Gate Park, which I think would be best addressed by #266 rather than further tweaking.

195-z12

Zoom 13

There's still some duped labels in here, which it would be good to get rid of in #267.

195-z13

Zoom 14

195-z14

New York City

Zoom 11

195-nyc-z11

Zoom 12

195-nyc-z12

Zoom 13

Most of the subway stations kick in all together at this zoom - possibly they're all point features. It would be nice to differentiate on "importance", perhaps by pulling the number of different lines it's part of out of the relation?

195-nyc-z13

Zoom 14

195-nyc-z14

zerebubuth commented 9 years ago

@nvkelso what do you think? OK to go, and we'll come back to fix #266, #267 and any additional tweaks in another round?

nvkelso commented 9 years ago

Generally looking fantastic! You've added a lot of clarity to the map :)

Regarding z13 in NYC and all the subway stations, let's track that using #268 as a separate problem. Are you suggesting we should lower the default layer to zoom 14 instead of 13 (you propose 13, it is a blanket 12 now) for those, though?

I'm still not seeing big churches? (they aren't visible now, so not a regression.) Is that because there isn't any landuse polygon with those tags? Should we open a separate issue to adopt this logic for POIs vis-a-vis building polygons?

It looks like you're using the area to calculate the visible airports, can you show what that looks like at zooms 9 and 10? We've usually had too many of those show up, I want to make sure we're seeing less after this change. Alternatively we could load this into dev and have a look around.

zerebubuth commented 9 years ago

It looks like you're using the area to calculate the visible airports, can you show what that looks like at zooms 9 and 10? We've usually had too many of those show up, I want to make sure we're seeing less after this change.

San Francisco

Zoom 9

No airports... we had too many, now do we have too few? Do we want them at zoom 9? It should be easy to pull them up a zoom, if that's what you want.

195-sf-z9

Zoom 10

Here we've got two: SF International (seems appropriate) but also Oakland, which is actually a larger airport in terms of area. If we need to distinguish between Oakland and SFO, then we probably need to bring in another dataset such as passenger numbers.

195-sf-z10

New York City

Zoom 9

Again, no airports. Although note that this extract is much smaller than the Bay Area one, so might be missing a few that didn't make the cut.

195-nyc-z9

Zoom 10

This zoom has Newark and JFK, which seems appropriate.

195-nyc-z10

zerebubuth commented 9 years ago

Here's a list of the top 20 airports on my local machine and the zoom they currently cut in at. Let me know if these can be dropped by a zoom or half or something.

 min_zoom |                      name                       
----------+-------------------------------------------------
        8 | Andrews AFB
        9 | John F. Kennedy International Airport
        9 | Sacramento International Airport
        9 | McClellan Airfield
        9 | Metropolitan Oakland International Airport
        9 | Newark Liberty International Airport
        9 | San Francisco International Airport
        9 | Gnoss Field Airport
       10 | Norman Y. Mineta San Jose International Airport
       10 | Fayetteville Regional Airport
       10 | 
       10 | Charles M. Schulz - Sonoma County Airport
       10 | Moffett Federal Airfield
       10 | LaGuardia Airport
       10 | Teterboro Airport
       10 | Westchester County Airport
       10 | Stockton Metropolitan Airport
       10 | airport
       10 | Farmingdale Airport
       10 | Eagle County Regional Airport
zerebubuth commented 9 years ago

After 918ba48 in #265 to pull places of worship up a few zooms:

San Francisco

Zoom 12

195-churches-sf-z12

Zoom 13

195-churches-sf-z13

Zoom 14

195-churches-sf-z14

New York City

Zoom 12

195-churches-nyc-z12

Zoom 13

195-churches-nyc-z13

Zoom 14

195-churches-nyc-z14

nvkelso commented 9 years ago
nvkelso commented 9 years ago

I suspect the stylesheet has an area filter that needs adjusting at zooms 9/10 so more tile data renders, I'll investigate that.

nvkelso commented 9 years ago
zerebubuth commented 9 years ago

Churches fixed in #265, so when that's merged this is done.

nvkelso commented 9 years ago

This is so awesome :)

nvkelso commented 9 years ago

I've updated the landuse area filters in the scene file. #213 covers porting some of that logic server side... when you disable those filters now a crazy number of label_position features show on the map, but that's always been the case and is already covered by that earlier issue. This is ready for prod.