Loading library after the map was created #989
Answered
by
Falke-Design
mcepo
asked this question in
Questions & Help
-
Is it possible to import leaflet-geoman after the map was already created ? I posted a question regarding this on stack-overflow |
Beta Was this translation helpful? Give feedback.
Answered by
Falke-Design
Sep 18, 2021
Replies: 1 comment 2 replies
-
Geoman is adding it self to the map while initializing the map. This means if L.Map is called before Geoman-Script is added to your site, Geoman will not be added to the map. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
mcepo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Geoman is adding it self to the map while initializing the map. This means if L.Map is called before Geoman-Script is added to your site, Geoman will not be added to the map.
Then you need to call
L.PM.reInitLayer(map)
.