felt / tippecanoe

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

Mapbox GL JS not displaying all Points when tiles are generated with --generate-ids option #232

Closed bvitlas closed 3 months ago

bvitlas commented 3 months ago

Hi folks,

I'm encountering a strange problem with MapboxGl JS, actually with my vector tiles that contain a large number of points, some of which overlap. When I generate MBTiles using Tippecanoe with the --generate-ids, and subsequently upload these to a Mapbox S3 bucket, not all points are showed later on the map , especially the overlapping ones... however, when I omit the --generate-ids option during the MBTiles creation, all points appear correctly on the map when I add some layer (circle type) on that vector source to map. In both ways, with and without ids, I can see that all points (overlapping ones) have been plotted on tiles when I inpect the in QGIS or Mapbox Studio, and I can confirm that all data are present in the tiles and that each point has a unique ID ! does anyone know what might be the issue with this ?

bvitlas commented 3 months ago

The error was related to the 'overzoom' feature being set when adding a source to the Mapbox map. Mapbox itself does not require this feature, but if you are using your own tile server, you need to include this property to enable overzooming