Leaflet.MarkerCluster.LayerSupport
Leaflet.MarkerCluster.LayerSupport copied to clipboard
markersupport
hi there i have issue with competability L.markerClusterGroup with L.moveMarker. How can i fix this problem. here is my code with markerCluster without moveMarker
var group2 = L.markerClusterGroup.layerSupport();
group2.addTo(map);
marker[1001] = L.moveMarker(
[[41.3110, 69.2797], [41.4110, 69.1797]],
{animate: true, color: "purple", weight: 1, hidePolylines: false, duration: 5000, removeFirstLines: true, maxLengthLines: 3},
{animate: true, hideMarker: false, duration: 5000, speed: 0, followMarker: false, rotateMarker: true, rotateAngle: 0,
icon: L.divIcon({
iconSize: [28, 28], marker[1001] = L.moveMarker(
[[41.3110, 69.2797], [41.4110, 69.1797]],
{animate: true, color: "purple", weight: 1, hidePolylines: false, duration: 5000, removeFirstLines: true, maxLengthLines: 3},
{animate: true, hideMarker: false, duration: 5000, speed: 0, followMarker: false, rotateMarker: true, rotateAngle: 0,
icon: L.divIcon({
iconSize: [28, 28],
className: "position-absolute rotate--marker",
html:
'<div><img style="height:28px" src="https://www.pngkit.com/png/full/54-544296_red-top-view-clip-art-at-clker-cartoon.png" /></div>'
}),
title: 'red'
}).addTo(map);
className: "position-absolute rotate--marker",
html:
'<div><img style="height:28px" src="https://www.pngkit.com/png/full/54-544296_red-top-view-clip-art-at-clker-cartoon.png" /></div>'
}),
title: 'red'
}).addTo(map);
and with moveMarker but there is nothing
marker[1001] = L.moveMarker(
[[41.3110, 69.2797], [41.4110, 69.1797]],
{animate: true, color: "purple", weight: 1, hidePolylines: false, duration: 5000, removeFirstLines: true, maxLengthLines: 3},
{animate: true, hideMarker: false, duration: 5000, speed: 0, followMarker: false, rotateMarker: true, rotateAngle: 0,
icon: L.divIcon({
iconSize: [28, 28], marker[1001] = L.moveMarker(
[[41.3110, 69.2797], [41.4110, 69.1797]],
{animate: true, color: "purple", weight: 1, hidePolylines: false, duration: 5000, removeFirstLines: true, maxLengthLines: 3},
{animate: true, hideMarker: false, duration: 5000, speed: 0, followMarker: false, rotateMarker: true, rotateAngle: 0,
icon: L.divIcon({
iconSize: [28, 28],
className: "position-absolute rotate--marker",
html:
'<div><img style="height:28px" src="https://www.pngkit.com/png/full/54-544296_red-top-view-clip-art-at-clker-cartoon.png" /></div>'
}),
title: 'red'
}).addTo(map);
className: "position-absolute rotate--marker",
html:
'<div><img style="height:28px" src="https://www.pngkit.com/png/full/54-544296_red-top-view-clip-art-at-clker-cartoon.png" /></div>'
}),
title: 'red'
}).addTo(group2);