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

Use Alt+Shift+Drag to rotate the map #14

Closed 1Map closed 1 year ago

1Map commented 2 years ago

How can we achieve the same behaviour as in Openlayers (Use Alt+Shift+Drag to rotate the map) ?

Raruto commented 2 years ago

Hi @1Map,

you can write your own handler based on the default one (Shift + Key + Rotate):

https://github.com/Raruto/leaflet-rotate/blob/6bfcccecf50143fd927e5f347a3f4d5a930c2f56/src/map/handler/ShiftKeyRotate.js#L1-L52

Have a nice day, Raruto