Hey everyone, I’m working on Mapbox by Zeroqode and want to trigger a modal when clicking on the marker and pass data, is that possible?
Hey @momen ,
Thank you for contacting us.
Yes, it’s definitely possible to trigger a modal when clicking on a marker using the Mapbox by Zeroqode plugin.
The plugin provides a “Marker Clicked” event, which you can use in your workflow to open a modal. Additionally, it exposes states like Marker Lat and Marker Lng, which you can use to get the location of the clicked marker and pass relevant data into your modal.
If you need to pass more specific data (like a custom ID or label), let us know a bit more about how you’re setting up your markers and what kind of data you’re working with.
Best Regards,
Anton