ghybs / Leaflet.TileLayer.Fallback

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

Incorrect errorTileUrl causes infinite loop #7

Closed ghybs closed 7 years ago

ghybs commented 7 years ago
  1. Specify an incorrect relative errorTileUrl option.
  2. Make so the Tile Layer cannot get some tiles (possibly specifying an incorrect urlTemplate or tampering with the tiles URL as done in the demo).

Similar to https://github.com/Leaflet/Leaflet/issues/5176 and https://github.com/Leaflet/Leaflet/issues/5776, make sure it is solved by PR https://github.com/Leaflet/Leaflet/pull/5783 (is it included in Leaflet v1.2.0?)

ghybs commented 7 years ago

Looks like the PR correctly fixes the issue: http://playground-leaflet.rhcloud.com/suyik/1/edit?html,output

Leaflet v1.0.2 was released on August 8th, whereas PR https://github.com/Leaflet/Leaflet/pull/5783 was merged on September 19th.