felt / tippecanoe

Build vector tilesets from large collections of GeoJSON features.
BSD 2-Clause "Simplified" License
875 stars 76 forks source link

Allow features that would be dropped dynamically to become multiplier features #199

Closed e-n-f closed 5 months ago

e-n-f commented 5 months ago

This PR addresses the problem of including extra features for filter access in tiles that are also having features dynamically dropped to make them small enough. It makes two changes:

  1. Features that are chosen to be dropped dynamically are now treated as candidates for multiplier cluster features, rather than being simply dropped, if the last primary feature has not already been given a full complement of secondary features
  2. The tile size limit is scaled up based on the actual ratio of secondary to primary features that have been placed in a given tile rather than on the theoretical expected need at that zoom level.