leafletjs旋转marker

leafletjs是啥:
画地图的:https://leafletjs.com/

如何旋转marker (icon):
引入github项目:https://github.com/bbecquet/Leaflet.RotatedMarker

如何使用:

var boat_marker = L.marker([set_lat, set_long], {
  pid: guid(),
  // rotationAngle: 45,
  icon: boatIcon,
  draggable: true,
}).addTo(mymap);

function rotated_point() {
  boat_marker.setRotationAngle(90);
}
原文地址:https://www.cnblogs.com/lisicn/p/14100774.html