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

propagate popup events up through the marker component #123

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

marcolarosa
Copy link

Hi - thanks for the code!

This is a small change to propagate the popup events up through the marker component. Not sure if it's the best way to do it and I had to disable the emit in the popup class (line 96) to stop the open event on load.

Hope you can include it!

@netlify
Copy link

netlify bot commented Sep 20, 2023

👷 Deploy request for vue-mapbox-gl pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit ae85513

@netlify
Copy link

netlify bot commented Sep 20, 2023

Deploy Preview for vue-mapbox-gl-demo canceled.

Name Link
🔨 Latest commit ae85513
🔍 Latest deploy log https://app.netlify.com/sites/vue-mapbox-gl-demo/deploys/650a7f645c12dc0008664887

@marcolarosa
Copy link
Author

Another nice to have (not sure how to implement in your code base - sorry).

If MapboxPopup.vue had an extra property data where the user could attach some JSON. Then, emit that along with the event on mb-open. Something like:

emit('mb-open', event, props.data)

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

Successfully merging this pull request may close these issues.

1 participant