ghybs / Leaflet.TileLayer.Fallback

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

Buggy behavior with maxNativeZoom #3

Closed Ceremony64 closed 8 years ago

Ceremony64 commented 8 years ago

Take a look at and zoom in: http://jsbin.com/peratajixi/1/edit?js,output

The map disappears until it loads the wrong tile(s). This issue does not occur if I do not use fallback or when not specifying maxNativeZoom.

ghybs commented 8 years ago

Hi,

Thank you for the report and for the JSBin!

Please can you check if that version fixes your issue? https://github.com/ghybs/Leaflet.TileLayer.Fallback/blob/fb360932f9a6f278b7f0611f81e0aef3197de47a/src/fallback.js (you can either build the dist file on your machine, or just copy-paste the content of that file on that commit into the v1.0.0 dist file)

Ceremony64 commented 8 years ago

Seems to work like a charm! Correct tiles and everything. Thanks a lot for the quick fix!

ghybs commented 8 years ago

Thank you for your confirmation!