#!/usr/bin/env python # coding: utf-8 # In[ ]: from ipyleaflet import Map, AntPath # In[ ]: m = Map(center=(52, 10), zoom=8) m # In[ ]: ant_paths = [] # In[ ]: ant_paths.append(AntPath(locations=[[51.5, 8], [52.5, 12.1]], use="polyline")) m += ant_paths[-1] # In[ ]: 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] # In[ ]: 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] # In[ ]: ant_paths.append( AntPath( locations=[51.5, 10], radius=15000, use="circle", dash_array=[5, 10], weight=5, color="magenta", ) ) m += ant_paths[-1] # In[ ]: for ant_path in ant_paths: ant_path.reverse = True # In[ ]: for ant_path in ant_paths: ant_path.paused = True