Skip to content

Optimizing vtiles layers based on zoom-level usage #1011

Closed

Description

@Rub21

I’m currently working on simplifying some features in the vector tiles and creating materialized views for specific layers. From: #917

I’ve also built a simple index.html page to compare the production map style with a staging version for vector tiles.
During the comparison, I noticed that many roads at zoom level 5 (tertiary type) aren’t used in the production style.
Loading features that aren’t visible at certain zoom levels isn’t optimal for performance.
As a next step, I’ll check the features more closely and begin removing or reducing those that don’t appear at specific zoom levels in the production map style.

https://tiler-compare.openhistoricalmap.org/vtiles_map_style/index.html#6.12/48.708/0.925

Image

Activity

  1. self-assigned this
    on Apr 4, 2025
  2. Rub21 commented on Apr 4, 2025

    @Rub21
    MemberAuthor

    I have created a summary of the four ma-styles historical.json, railway.json, woodblock.json, and japanese_scroll.json and gathered the minimum and maximum zoom levels used.

    # source-layer minzoom maxzoom
    1 land_ohm_lines 0.0 20
    2 land_ohm_centroids 0.0 20
    3 land_ohm_maritime 0.0 12
    4 place_areas 14.0 20
    5 place_points 0.0 20
    6 water_areas 0.0 20
    7 water_areas_centroids 0.0 20
    8 water_lines 8.0 20
    9 transport_areas 12.0 20
    10 transport_associated_streets 7.0 20
    11 transport_lines 5.0 20
    12 transport_points 14.0 20
    13 route_lines 5.0 20
    14 amenity_areas 14.0 20
    15 amenity_areas_centroids 14.0 20
    16 amenity_points 14.0 20
    17 buildings 14.0 20
    18 buildings_centroids 14.0 20
    19 buildings_points 14.0 20
    20 landuse_areas 3.0 20
    21 landuse_areas_centroids 3.0 20
    22 landuse_lines 14.0 20
    23 landuse_points 6.0 20
    24 other_areas 6.0 20
    25 other_areas_centroids 6.0 20
    26 other_lines 14.0 20
    27 other_points 14.0 20
  3. added theissue type on Apr 8, 2025
  4. 1ec5 commented on Apr 17, 2025

    @1ec5
    Member

    We should also consider OpenRailwayMap if we reduce the amount of rail-related data at lower zoom levels. Its needs should be similar to the Railway style for now. hiddewie/OpenRailwayMap-vector#348 shows main and branch railways at vector z5 and beyond. There may still be an opportunity to trim less important railway classifications at low zoom levels.

  5. Rub21 commented on Apr 23, 2025

    @Rub21
    MemberAuthor

    currently the zoom for transport_lines is starting form zoom 6 , if there are start showing from zoom 5 , Ican adjust couple of things to start from zoom 5

    Image
  6. added
    tiler-server
    tiler-imposm
    on Apr 30, 2025
  7. Rub21 commented on May 5, 2025

    @Rub21
    MemberAuthor

    I have adjusted the min zoom for transport_lines . so it will display from zoom 5 to 20.

    Image

  8. Rub21 commented on May 6, 2025

    @Rub21
    MemberAuthor

    The critical layer that was not filtered according to the map styles was transport_lines, where many categories started appearing at lower zoom levels. I’ve fixed it, and now it displays according to the correct starting zoom level. also i have fixed to starts showing at min zoom 5.

  9. moved this from In Progress to Ready for Staging in OpenHistoricalMap Dev Planningon May 6, 2025
  10. moved this from Ready for Staging to In Production in OpenHistoricalMap Dev Planningon Jun 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

tiler-imposmtiler-servervtiles

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions