from ipyleaflet import Map, AntPath
m = Map(center=(52, 10), zoom=8)
m
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]
for ant_path in ant_paths:
ant_path.reverse = True
for ant_path in ant_paths:
ant_path.paused = True