ghybs / Leaflet.TileLayer.Fallback

Replaces missing Tiles by scaled lower zoom Tiles
Apache License 2.0
36 stars 18 forks source link

Compatibility with Leaflet 1.x #2

Closed Ceremony64 closed 8 years ago

Ceremony64 commented 8 years ago

Currently, the plugin only supports Leaflet 0.7 Are there plans to update the plugin for Leaflet 1.0?

ghybs commented 8 years ago

Hi,

Thank you for your message!

I do not have plans to update currently. Have you tried if it works with Leaflet 1.0 as-is, by any chance? What errors appear, if any?

Ceremony64 commented 8 years ago

The fallback no longer works with 1.0. Once it kicks in, console outputs "TypeError: originalTilePoint is undefined" Heres an example: http://jsbin.com/sibipayahe/edit?js,output

ghybs commented 8 years ago

Thank you for the report and for the JSBin!

I will have a look later about what is causing the error.

Feel free to contribute further by the way! :-)

ghybs commented 8 years ago

Ok should be fine now in v1.0.0 release :-)

Ceremony64 commented 8 years ago

Thanks ghybs for helping me out so quickly!