Vue2 - this.map has no pm object #1257
-
Hello! We have not made any changes to the code itself, just the dependencies in packages.json. How have other people solved this? We use the .pm object is used to addControls (amongst other), as below:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @hkeidesen, can you please check if the What do you get if you run You can try to use |
Beta Was this translation helpful? Give feedback.
Hi @hkeidesen,
can you please check if the
geoman
script is imported before creating the map.What do you get if you run
console.log(L.PM.version)
? -> This checks if Geoman is available.You can try to use
[email protected]
, it's the same version asleaflet.pm@latest
. If that works increase the version number until you facing the issue.