Lab9
Using basemaps in geotask¶
In [1]:
Copied!
#!pip install geotask
#!pip install geotask
In [2]:
Copied!
import geotask
import geotask
In [3]:
Copied!
m = geotask.Map()
m
m = geotask.Map()
m
Out[3]:
Map(center=[20, 0], controls=(ZoomControl(options=['position', 'zoom_in_text', 'zoom_in_title', 'zoom_out_text…
In [4]:
Copied!
m.add_basemap_gui()
m
m.add_basemap_gui()
m
Out[4]:
Map(center=[20, 0], controls=(ZoomControl(options=['position', 'zoom_in_text', 'zoom_in_title', 'zoom_out_text…
In [5]:
Copied!
m.add_zoom_slider()
m.add_zoom_slider()
In [6]:
Copied!
import ipywidgets as widgets
from ipyleaflet import WidgetControl
import ipywidgets as widgets
from ipyleaflet import WidgetControl
In [7]:
Copied!
output_widget = widgets.Output(layout={"border": "1px solid black"})
output_control = WidgetControl(widget=output_widget, position="bottomleft")
m.add_control(output_control)
output_widget = widgets.Output(layout={"border": "1px solid black"})
output_control = WidgetControl(widget=output_widget, position="bottomleft")
m.add_control(output_control)
In [8]:
Copied!
with output_widget:
print("Welcome to Geotask!")
with output_widget:
print("Welcome to Geotask!")