Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow access to the annotation object using a forward ref #9

Open
Nicolapps opened this issue Dec 18, 2022 · 2 comments
Open

Allow access to the annotation object using a forward ref #9

Nicolapps opened this issue Dec 18, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@Nicolapps
Copy link
Owner

No description provided.

@Nicolapps Nicolapps added the enhancement New feature or request label Dec 18, 2022
@nikischin
Copy link
Contributor

I agree, this could be possibly beneficial, though I would like to understand your need behind this. I was wondering, if it could be also beneficial providing the annotation reference on the events (additionally or instead) as some forward ref implementations in my experience can end up being quite an ugly solution hah

@Nicolapps
Copy link
Owner Author

I don’t have a need for it in my own projects, I created this issue more as something that could possibly be useful in the future. One example could be to access element, but I’m not sure what this could really be used for.

Since the MapKit JS APIs are rarely used, and should be avoided when possible, I would prefer to only expose them as refs. The ref system also makes the API usage more flexible, as it allows the users to pass the ref to other components or use them in event handlers of other elements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants