Skip to content

Features showing up on different zoom levels #1346

Closed

Description

@flha127

Features of the same type should get displayed at the same zoom level while now they might get displayed from zoom level 10 to even 17 or 18 which makes navigating and understanding the map difficult.

Activity

  1. 1ec5 commented on Apr 23, 2026

    @1ec5
    Member

    Which kinds of features are you seeing come in inconsistently? Is this about the features we’ve been trying to filter out at low zoom levels based on small area, as in #1155 #1156 #985? Or about labels that get collided out, which so far we’ve been unsuccessful at resolving in #1002?

  2. flha127 commented on Apr 24, 2026

    @flha127
    Author

    It is related to #1155, small landuse/other & transport areas should all be visible from zoom 13 and all buildings/amenity_areas should all be visible from zoom 14 or at least the display threshold should be much smaller because currently quite large sections of the map are missing and sometimes you have to zoom in up to 16 to be able to see them.
    Z15 https://i.goopics.net/d6ohkq.png
    Image
    Z16 https://i.goopics.net/5mh4i0.png
    Image

  3. added theissue type on Apr 25, 2026
  4. 1ec5 commented on Apr 25, 2026

    @1ec5
    Member

    OK, thanks for the screenshots. I’m not quite sure I’m comprehending what’s missing yet, but in general I wouldn’t be surprised if we overshot and need to correct a bit. Out of curiosity, how does our filtering compare with an OSM-based vector style, such as the MapTiler OMT or Shortbread layers on osm.org? Showing comprehensive building coverage at a lower zoom level would make little difference in a raster tile but could incur a significant size and performance impact in a vector tile. We’ll need to make sure we strike the right balance between detail and responsiveness. Existing OSM-based vector maps can give us a goal to aim for.

  5. CharliePlett commented on May 4, 2026

    @CharliePlett

    I just realized this is the same issue as my issue #1351

  6. CharliePlett commented on May 19, 2026

    @CharliePlett
  7. Ex-scriptorio commented on May 19, 2026

    @Ex-scriptorio

    This is also related to issue #1363

  8. flha127 commented on May 20, 2026

    @flha127
    Author

    I’m not quite sure I’m comprehending what’s missing

    As pointed out by Ex-scriptorio, many features are rendered depending on their area size which makes them show up at different zoom levels.

    Out of curiosity, how does our filtering compare with an OSM-based vector style, such as the MapTiler OMT or Shortbread layers on osm.org? Showing comprehensive building coverage at a lower zoom level would make little difference in a raster tile but could incur a significant size and performance impact in a vector tile. We’ll need to make sure we strike the right balance between detail and responsiveness. Existing OSM-based vector maps can give us a goal to aim for.

    (all zoom levels are OHM/OSM = Maputnik+1)

    OMT renders residential areas from Z7 and the others areas from Z8. At low zoom levels they concatenate those to create a simple polygon shape and it looks great.

    All the areas are rendered in their "true" form beginning at Z14.

    Bigger buildings are rendered beginning at Z14 in a similar way to areas above however we end up with strange massive buildings spanning hundreds of meters while some small and fully detached buildings aren't rendered.
    https://www.openstreetmap.org/#map=14/50.61527/3.42284&layers=V
    https://www.openstreetmap.org/#map=15/50.61554/3.41967&layers=V
    You might have a look at the buildings east of Verte Feuille between chaussée de Frasnes North, rue Nouvelle East and Liberty Street South.

    All the buildings and building parts are rendered in their "true" form beginning at Z15.

    In OHM some areas are rendered beginning at Z13, OMT manages to show all of them at zoom level 14 so we can get rid of the area size rendering.

    I would suggest skipping the OMT Z14 buildings and displaying them at Z15 the way OMT does.

  9. niels20020 commented on Jun 2, 2026

    @niels20020

    I have just one comment to make about this:
    Please make all buildings render at zoom level 15. In many places, the map now looks so much emptier than it truly is at that zoom level.

  10. Rub21 commented on Sep 4, 2026

    @Rub21
    Member

    I made the tiles display buildings at zoom 15 on the website:

    • Vtiles: tile z14
    • Website: zoom 15

    Three things went in.

    • I removed the 5,000 m² cutoff on the z14-15 view, so every building is included now.
    • To keep the tiles from growing too much, I removed the columns that no style reads at those zooms. It now carries only osm_id, type, class, start_decdate and end_decdate.
    • At z14-15 the buildings are grouped by their date pair, so a tile sends a few dozen features instead of thousands. This is close to what OMT does with its building blocks, but in our case the grouping key is the dates.

    From z16 up nothing changed, all the buildin has all attributes.

    Production against staging, z14 tiles

    Changes are live in staging https://ohmstaging.org/#map=15/50.60313/3.40085 , I made a comparison production against staging

    Area Tile Buildings before Buildings now Size before Size now Difference
    Tournai, BE 14/8346/5512 16 5,551 51.8 KB 90.6 KB +38.9 KB
    New York 14/4824/6157 66 7,221 24.6 KB 70.2 KB +45.5 KB
    Washington DC 14/4685/6267 26 82 20.0 KB 20.2 KB +0.2 KB
    London 14/8186/5448 45 159 28.7 KB 29.4 KB +0.7 KB
    Paris 14/8299/5636 4 91 15.0 KB 16.0 KB +0.9 KB

    Only Tournai and New York grow much, since they are the only ones with dense building data in OHM.

  11. Rub21 commented on Sep 4, 2026

    @Rub21
    Member

    @1ec5 I measured OHM tiles against OMT and the Shortbread layer on osm.org.

    When each one starts sending buildings:

    Schema z13 z14 z15 z16+
    Shortbread (osm.org) none all overzoomed z14 overzoomed z14
    OpenMapTiles merged blocks all all all
    OHM production none over 5,000 m² over 5,000 m² all
    OHM staging none all all all

    Size of the same z14 tiles

    Area Tile OHM - gzipped OSM - gzipped
    Tournai 14/8346/5512 90.6 KB 79.3 KB
    New York 14/4824/6157 70.2 KB 190.8 KB
    London 14/8186/5448 29.4 KB 151.6 KB
    Paris 14/8299/5636 16.0 KB 298.6 KB
  12. Rub21 commented on Sep 7, 2026

    @Rub21
    Member

    This is been deployed in production now, so good to close here!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions