I need a way to rotate only the shadow of the icon which is linked to my marker.
I'm using this plugin for rotation : https://github.com/hanying33/Leaflet.RotatedMarkerWithShadow
The example below rotate both shadow and icon :
var my_icon = L.icon({
iconUrl: crisi_icon,
iconSize: [34, 34],
iconAnchor: [17, 17],
shadowUrl: path_azimuth,
shadowSize:[34,34],
shadowAnchor:[17,34],
});
var my_marker = L.marker([feature.geometry.coordinates[1],feature.geometry.coordinates[0]],{
icon: my_icon,
rotationAngle: isNaN(feature.properties.Azimuth) ? 0 : feature.properties.Azimuth,
rotationOrigin: mon_icon[1],
rotationShadowOrigin:'center center',
draggable:false,
});
The result is like this :
But I need something like this :

