the beauty of mapping


Kode Iklan Disini

Monday, July 5, 2021

Animated Polylines Inwards Leaflet


I've been waiting for this Leaflet plug-in for a while. Leaflet.Polyline.SnakeAnim animates a polyline on a Leaflet map in addition to so that you lot tin present an animated road on your map.

The GitHub page for the plug-in includes an animate GIF of Leaflet.Polyline.SnakeAnim inwards activeness but doesn't include a working example. I've hence created a quick demo map. In my demo I've changed ane principal matter from the demo.html on the GitHub page. I've moved

map.addLayer(path);

within the animation part in addition to so that the road polyline doesn't seem on the map earlier it starts animating. To animate the road on the map only press the button.