Skip to content

propagate popup events up through the marker component #123

New issue

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

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

Already on GitHub? # to your account

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 rejected.

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)

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

Successfully merging this pull request may close these issues.

1 participant