Leaflet / Leaflet.VectorGrid

Display gridded vector data (sliced GeoJSON or protobuf vector tiles) in Leaflet 1.0.0
598 stars 194 forks source link

Leaflet.VectorGrid does not work on newest Leaflet v1.3.2 and v1.3.3 #175

Closed ashleysommer closed 5 years ago

ashleysommer commented 6 years ago

Offending line in Leaflet.VectorGrid is https://github.com/Leaflet/Leaflet.VectorGrid/blob/13315057d285bfa5d5cb74d2abb442e925825b55/src/Leaflet.VectorGrid.js#L143

In this case, the third parameter of done() should be a Tile, not a null, due to new attribute checking in Leaflet.

See this issue on the Leaflet issue tracker: https://github.com/Leaflet/Leaflet/issues/6245

Leaflet.VectorGrid works fine if you pin Leaflet to ==1.3.1

ashleysommer commented 6 years ago

Upstream bug in leaflet is fixed in leaflet 1.3.4. Put leaflet: ^1.3.4 in your dependencies to fix.