TypeError: Cannot read properties of undefined (reading 'optIn') #1557
Unanswered
mbajur
asked this question in
Questions & Help
Replies: 1 comment 3 replies
-
I think the problem is on line 65: Lines 61 to 67 in 4a08abb It looks like leaflet-geoman is not available on your leaflet variable |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey! I'm trying to initialize a simple Leaflet instance with Geoman plugin enabled. I followed all the tutorials i was able to find anywhere on the internet but the following error persists:
TypeError: Cannot read properties of undefined (reading 'optIn')
onL.map
line.My code looks as follows:
I'm on
leaflet 1.9.4
("leaflet19": "npm:[email protected]"
) and@geoman-io/leaflet-geoman-free 2.18.3
. Thanks in advance for any ideas!PS. Just to make it clear: Map works just fine without the geoman import. It's the geoman import what breaks it.
Beta Was this translation helpful? Give feedback.
All reactions