aparshin / leaflet-boundary-canvas

Leaflet plugin to draw raster layers with arbitrary boundary
MIT License
170 stars 41 forks source link

BoundaryCanvas not work with Leaflet 0.8 #5

Closed geostarters closed 9 years ago

geostarters commented 10 years ago

In Leaflet 0.8 TileLayer.Canvas have been removed instead of GridLayer type.

aparshin commented 10 years ago

I almost finished Leaflet 0.8 support, but at the last moment faced an issue with rounding in geometry clip functions in Leaflet core. Here is the corresponding issue: https://github.com/Leaflet/Leaflet/issues/2917...

Will try to fix that first.

alexcroox commented 9 years ago

Any news from them? I'm looking to use 0.8's flyTo method but also with BoundaryCanvas

aparshin commented 9 years ago

Well, I've temporary copied all nessesary util functions from Leaflet sources with required fixes. I hope sooner or later my PR will be merged and I remove this hack...

Anyway, now the plugin works with Leaflet 0.7.3 and with the last version from master branch.

@alexcroox @geostarters Can you, please, check that everything is ok?

alexcroox commented 9 years ago

Works OK in 0.7.3 still, can't test 0.8 just yet as maskcanvas is also broken in 0.8 and my code heavily relies on it!

aparshin commented 9 years ago

I'm closing this issue, but don't hesitate to reopen it if you discover any bugs with 0.8 version!