效果图:
npm install leaflet-rotatedmarker
L.marker([48.8631169, 2.3708919], {
rotationAngle: Math.random() * 180, // 旋转角度,以度为单位,顺时针方向。
rotationOrigin: "center center", // 旋转中心
}).addTo(map);
效果图:
npm install leaflet-rotatedmarker
L.marker([48.8631169, 2.3708919], {
rotationAngle: Math.random() * 180, // 旋转角度,以度为单位,顺时针方向。
rotationOrigin: "center center", // 旋转中心
}).addTo(map);