其他分享
首页 > 其他分享> > leafletjs旋转marker

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);
}

标签:set,旋转,https,leafletjs,marker,boat,icon
来源: https://www.cnblogs.com/lisicn/p/14100774.html