Leaflet Polyline.SnakeAnim

2253 단어 leafletSnakeAnim
IvanSanchez/Leaflet.Polyline.SnakeAnim: Animates Leaflet polylines so they creep into full length



var latlngs = [];
for (var i = 0; i < route.length; i++) {
    latlngs.push(new L.LatLng(route[i][1], route[i][0]));
}

var line = L.polyline(latlngs, {snakingSpeed: 200});
line.addTo(map).snakeIn();


path.snakeIn();

좋은 웹페이지 즐겨찾기