Leaflet
In [ ]:
Copied!
# %pip install mapwidget
# %pip install mapwidget
In [ ]:
Copied!
import mapwidget
import mapwidget
In [ ]:
Copied!
m = mapwidget.Map(center=[20, 0], zoom=2, height='600px')
m
m = mapwidget.Map(center=[20, 0], zoom=2, height='600px')
m
In [ ]:
Copied!
m.add_basemap('HYBRID')
m.add_basemap('HYBRID')
In [ ]:
Copied!
m.add_basemap('OpenTopoMap')
m.add_basemap('OpenTopoMap')
In [ ]:
Copied!
from mapwidget.basemaps import get_basemap_list
print(len(get_basemap_list()))
from mapwidget.basemaps import get_basemap_list
print(len(get_basemap_list()))
In [ ]:
Copied!
get_basemap_list()[:10]
get_basemap_list()[:10]
In [ ]:
Copied!
m.clicked_latlng
m.clicked_latlng
In [ ]:
Copied!
m.center
m.center
In [ ]:
Copied!
m.bounds
m.bounds
In [ ]:
Copied!
m.zoom
m.zoom
Last update:
2023-03-24