# Set up for JupyterLite
try:
import piplite
await piplite.install('ipyleaflet')
except ImportError:
pass
from ipyleaflet import (
Map,
Marker,
TileLayer,
ImageOverlay,
Polyline,
Polygon,
Rectangle,
Circle,
CircleMarker,
GeoJSON,
DrawControl,
)
center = [39.9610845, -75.1540457]
zoom = 14
m = Map(center=center, zoom=zoom)
m
# Or any other appropriate url
carto_url = (
"https://cartodb-basemaps-{s}.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png"
)
m.clear_layers()
m.add(TileLayer(url=carto_url))