Waymark adds powerful mapping features to WordPress that are easy to use. Create beautiful, interactive Maps that you can customise to suit your needs.
Originally posted by **killianweid** March 28, 2024
Hello, in order to rotate the map according to the direction of movement of the user (I developed a GPS on leaflet maps) I would like to integrate the [npm package leafleat-rotate-map](https://www.npmjs.com/package/leaflet-rotate) but I don't know how to go about it.
I have already tried to install it via the command "npm install leaflet-rotate-map" then include it in the waymark.js file via line 27 of the "Gruntfile.js" file as an attachment. But then when I try to use the "setBearing()" method in the "Waymark_Map.js" file (which is created in the previous package) it is not recognized..
[Gruntfile.js.zip](https://github.com/OpenGIS/Waymark/files/14795946/Gruntfile.js.zip)
Discussed in https://github.com/orgs/OpenGIS/discussions/36