Skip to content

Integrating Leaflet Plugins #37

@morehawes

Description

@morehawes

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 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions