Skip to content

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)

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