# Set up for JupyterLite
try:
import piplite
await piplite.install('ipyleaflet')
except ImportError:
pass
from ipyleaflet import Map, MagnifyingGlass, basemaps, basemap_to_tiles
m = Map(center=[0, 0], zoom=2)
m
topo_layer = basemap_to_tiles(basemaps.OpenTopoMap)
magnifying_glass = MagnifyingGlass(layers=[topo_layer], zoom_offset=1)
m.add(magnifying_glass)