Skip to content

Review tile sizes and performance of map tiles #698

Closed

Description

@danrademacher

Max Tile Size

  • 500kb is the recommended tile size

We have tiles of 8MB and even 18MB!

Have we been overly generous adding stuff to vtiles?
How can we find the largest tiles?

Activity

  1. added
    infrastructure
    on Feb 20, 2024
  2. danrademacher commented on Feb 20, 2024

    @danrademacher
    Author

    OK, actually that link is San Jose:
    image

    These are some massive tiles!

    total tiles: 4
    min size: 2270.83kb
    avg size: 4366.51kb
    max size: 6905.41kb

    And this is the main driver:

    land_ohm	1254.97k	1927.48k	4317.01	5594
    

    In Europe, place_points and transport_lines are the main driver: https://stamen.github.io/map-tools/tilestats/?tiles=https://vtiles.openhistoricalmap.org/maps/osm/{z}/{x}/{y}.pbf#4.49/51.46/10.92

    image

    transport_lines	39.84m	11562.29	135.78	774.33
    place_points	88.9m	4852.31	259.82	10324.95
    
  3. 1ec5 commented on Feb 20, 2024

    @1ec5
    Member

    At zoom level 8, we can probably afford to do more aggressive simplification on features like boundaries: #702. Another big gain would come from replacing boundary polygons with boundary edge polylines: #701.

  4. added theissue type on Mar 16, 2025
  5. Rub21 commented on Aug 14, 2025

    @Rub21
    Member

    San Jose – Vector Tiles Before vs After Improvements

    Metric Before After Change
    Min size 2,270.83 KB 4.62 KB −99.8%
    Avg size 4,366.51 KB 149.43 KB −96.6%
    Max size 6,905.41 KB 357.83 KB −94.8%

    https://stamen.github.io/map-tools/tilestats/?tiles=https://vtiles.openhistoricalmap.org/maps/osm/%7Bz%7D/%7Bx%7D/%7By%7D.pbf#11.84/37.3128/-121.75907

    Image

    With these improvements, tha we done in #800 and #1040, #1011 . tile sizes have been drastically reduced, and loading times are faster thanks to the migration to materialized views #917

    In general, the vector tiles are running well for now. I think we can close this ticket and mark it as complete.

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

Metadata

Metadata

Labels

infrastructurevtiles

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions