mapbox-gl-jsmbtilestippecanoe

tippecanoe keeps dropping polygons at mid level zooms


Is there anyway to stop tippecanoe from dropping polygons at low/mid level zooms while keeping within the 500kb per tile size limit of mapbox uploads for an mbtiles file? We are getting a lot of polygons being dropped. We are not sure what flags to use to make this possible.

This is the command line:

tippecanoe -o polys.mbtiles \
--coalesce-smallest-as-needed \
--coalesce-densest-as-needed \
--coalesce-fraction-as-needed \
--simplify-only-low-zooms \
--no-feature-limit \
--no-tile-size-limit \
--minimum-zoom=10 \
--maximum-zoom=20 \
--calculate-feature-density

Without --no-feature-limit --no-tile-size-limit, features get dropped.


Solution

  • There are lots of possible solutions to prevent small polygons being dropped, depending on what the cause of the dropping is.

    But ultimately, there is a tradeoff. You can't have infinite information within every tile, so you will have to choose what information you do want to keep.