Raruto / leaflet-rotate

Leaflet plugin that allows to add rotation functionality to map tiles
GNU General Public License v3.0
81 stars 23 forks source link

Not working leaflet-rotatedmarker #47

Closed clopezpro closed 10 months ago

clopezpro commented 11 months ago

if use

import 'leaflet-rotate'
import 'leaflet-rotatedmarker'

L.marker(latlng, {
      icon: iconRealTime,
      rotationAngle: feature.properties?.orientation ?? 0,
    }

rotationAngle not work

clopezpro commented 11 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'

image

import 'leaflet-rotate'

image

Raruto commented 10 months ago

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