Closed clopezpro closed 10 months ago
use
L.marker(latlng, {
icon: iconRealTime,
rotation: feature.properties?.orientation ?? 0,
},
)
and this not use rotateZ(35deg)
, use rotate(35rad)
in css
import 'leaflet-rotatedmarker'
import 'leaflet-rotate'
It's developers job knowing how to integrate other code/libraries..
As an inspiration, you can see this fork: https://github.com/Raruto/leaflet-elevation/blob/bd9316bd1b7e7784b3bf3d812960eaa808ad94d6/libs/leaflet-distance-marker.js
👋 Raruto
if use
rotationAngle not work