Hi there fellow Wapplers,
Fairly simple question: is it possible to show a modal with a Data Detail on Google Maps Marker Click? If so, how?
I did find this cool video that shows you how to show a dynamic url in the info popup:
https://www.youtube.com/watch?v=x4W8ocN2i3s
However, what I try to accomplish is slightly different.
I’ve tried going the same route as with using a table. Where you click a row, open modal and select ID to show in the data detail in the modal. As explained wonderfully here:
(in the current beta this suffers from a bug where content. is added and you need to remove this in order for the data detail to work)
That does open up a nice modal, but doesn’t show the dynamic data. I use Marker Click Event id as id:
So to clarify, the setup is as such:
- query on database to get markers address
- dynamically show these markers on google maps
- on click marker show modal
- in modal show data detail that gets data from the right id (this doesn’t seem to work)
Any suggestions are highly appreciated
Last updated: