Leaflet / Leaflet.VectorGrid

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

Nothing displayed with L.Canvas.Tile #51

Closed glandais closed 7 years ago

glandais commented 7 years ago

Using leaflet 1.0.2

Looks like _drawing is undefined in L.Canvas

Suggested : _draw() in addTo

perliedman commented 7 years ago

Hi, I believe this problem does not exist if you're using latest VectorGrid from master, since it defines _drawing: https://github.com/Leaflet/Leaflet.VectorGrid/blob/master/src/Leaflet.Renderer.Canvas.Tile.js#L15

Earlier versions (and unfortunately the latest released version at the time of writing) does not support Leaflet 1.0.2 for this reason.

reyemtm commented 7 years ago

Would be nice then to add supported leaflet versions in the read me.