Leaflet.PolylineDecorator
Leaflet.PolylineDecorator copied to clipboard
rotationAngle conflicts with Leaflet.RotatedMarker
I imported this library and your Leaflet.RotatedMarker
. When I want to rotate the marker using Leaflet.RotatedMarker
, the markers are not rotated properly, e.g., 45 degrees rotates as 90 degrees.
import 'leaflet-polylinedecorator';
import 'leaflet-rotatedmarker';
L.marker([point.lat, point.lon], {
rotationAngle: point.azm,
}).addTo(this.map));
Is it possible if you would please name the rotationAngle
option differently?
i also met
Did you guys fix this? How? We are having the same issue.
Same issue, guys...
Update:
Fixed by using only leaflet-polylinedecorator
and removing leaflet-rotatedmarker
package from project.
This package has all functionality of rotatedmarker
Oh, I forgot that I had opened this issue. What I did for workaround was divide the angle by 2.
What it does (if I recall correcty since I haven't touched this for about a year) is leaflet-polylinedecorator
rotates for x
degrees then leaflet-rotatedmarker
rotates for another x
degrees, i.e., it rotates for 90 degrees since it rotates 45 degrees twice.
Since @pavloniym informed that leaflet-polylinedecorator
can do that by itself, this workaround isn't needed. Follow what suggested above.