flex_author = "built using jupyter-flex"
flex_source_link = "https://github.com/danielfrg/jupyter-flex/blob/master/examples/widgets/ipyleaflet.ipynb"
flex_include_source = True
from ipyleaflet import Map, Marker
center = (52.204793, 360.121558)
Map(center=center, zoom=15)
from ipyleaflet import Map, AntPath
m = Map(center=(52, 10), zoom=8)
ant_paths = []
ant_paths.append(AntPath(
locations=[[51.5, 8], [52.5, 12.1]],
use = 'polyline'
))
m += ant_paths[-1]
ant_paths.append(AntPath(
locations=[[52, 8], [52.5, 8], [52.3, 9]],
use='polygon',
dash_array=[50, 100],
weight=10,
color='red'
))
m += ant_paths[-1]
ant_paths.append(AntPath(
locations=[[51.5, 11], [52, 12]],
use='rectangle',
dash_array=[10, 20],
weight=5,
color='white',
pulse_color='green'
))
m += ant_paths[-1]
ant_paths.append(AntPath(
locations=[51.5, 10],
radius=15000,
use='circle',
dash_array=[5, 10],
weight=5,
color="magenta"
))
m += ant_paths[-1]
m
Map(center=[52, 10], controls=(ZoomControl(options=['position', 'zoom_in_text', 'zoom_in_title', 'zoom_out_tex…