jjzjj

iconAngle

全部标签

javascript - 在传单中旋转标记

如何旋转传单中的标记?我会有很多标记,都有旋转Angular。我已经在runanet/coomsie尝试过这个解决方案,地址是LeafletonGitHub,但我的标记没有任何反应:L.Marker.RotatedMarker=L.Marker.extend({_reset:function(){varpos=this._map.latLngToLayerPoint(this._latlng).round();L.DomUtil.setPosition(this._icon,pos);if(this._shadow){L.DomUtil.setPosition(this._shadow