def create_map_obj(center = [30,5], zoom = 2):
"""
Creates a new ipyleaflet map object that defaults to a view of the entire world.
Can specify center
"""
if leaflet_enabled is False:
return "IPywidgets and ipyleaflet support disabled."
else:
m = Map(default_tiles=TileLayer(opacity=1.0), center=center, zoom=zoom, layout=ipywidgets.Layout(height="600px"))
return m
评论列表
文章目录