How to create a new marker using MapMouseEvent? #252
-
When trying to integrate a function that adds a new marker to the array I get this error What should I change to make it work?
|
Beta Was this translation helpful? Give feedback.
Answered by
mrMetalWood
Mar 11, 2024
Replies: 1 comment 1 reply
-
The Should be Does that work for you? |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
lmykhailo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
latLng
property is available via thedetail
property on the MapMouseEvent.Should be
event.detail.latLng.lat
andevent.detail.latLng.lng
.Does that work for you?