OpenGIS / Waymark

Waymark adds powerful mapping features to WordPress that are easy to use. Create beautiful, interactive Maps that you can customise to suit your needs.
https://www.waymark.dev
GNU General Public License v2.0
21 stars 6 forks source link

Integrating Leaflet Plugins #37

Open morehawes opened 6 months ago

morehawes commented 6 months ago

Discussed in https://github.com/orgs/OpenGIS/discussions/36

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)