ipyleaflet icon indicating copy to clipboard operation
ipyleaflet copied to clipboard

Zooming in gives blank tiles

Open mdtanker opened this issue 5 months ago • 0 comments

I have an issue similar to #925. When I zoom in on a layer, once I get to or passed it's original max_zoom setting the map goes blank, instead of just zooming in. For example, ipyleaflet.basemaps.NASAGIBS.BlueMarbleBathymetry3031 has a default max_zoom of 5. Once you are at zoom level >=5, there is no data shown.

Setting max_zoom and max_native_zoom for the basemap, or max_zoom in Map has no effect.

import ipyleaflet

base = ipyleaflet.basemaps.NASAGIBS.BlueMarbleBathymetry3031(
    max_zoom=10,
    max_native_zoom=10,
)
proj = ipyleaflet.projections.EPSG3031.NASAGIBS
m = ipyleaflet.Map(
    center=(-90, 0),
    zoom=5,
    basemap=base,
    crs=proj,
    max_zoom=10
)
m

mdtanker avatar May 30 '25 07:05 mdtanker