When I zoom in far enough on my map, the TileLayer disappears and I see a bunch of tiles that say \"Map data not yet available\". I believe these tiles may be coming from th
This can be solved by using two of the options of L.TileLayer
.
First, set maxNativeZoom
to the highest zoom level your tiles provide (the last zoom level before the "Map data not available" starts to appear - this tells Leaflet to stop requesting new tiles when zooming in beyond this level; stretched tiles will be used instead.
Second, set maxZoom
to whatever zoom is appropriate; you might not want this to be more than a couple of levels higher than maxNativeZoom
, since the stretched tiles will start to look pretty horrible.
You can find out more about the details by checking under "Options" in the documentation for L.TileLayer
: http://leafletjs.com/reference.html#tilelayer