Replies: 5 comments
-
another option would be to add this event to the return of |
Beta Was this translation helpful? Give feedback.
-
Have you considered having the the instance of the map as a property of the widget and documenting it? |
Beta Was this translation helpful? Give feedback.
-
@bobylito then it would be undefined before mounted right? |
Beta Was this translation helpful? Give feedback.
-
Probably indeed 😅 . Other idea: what about having a method on the widget instance that returns a promise of the map? |
Beta Was this translation helpful? Give feedback.
-
For anyone still wondering, a reference to the map is passed in the events from builtInMarker and customHTMLMarker. |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? Please describe 🙏
It might happen in some cases that you directly want to interact with the map instance. Right now the only way to get this instance is through the event listeners on the markers. It would be nice to provide it as soon as the map is instantiated.
Describe the solution you'd like 🤔
We can trigger an event once the map is instantiated.
Additional context
See #2778 (comment)
Beta Was this translation helpful? Give feedback.
All reactions