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:
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:
Hi.
There is already an option to setup dynamic markers on a map & there is also a dynamic event for “marker clicked”.
On click of marker, you can use the clicked marker’s ID with the binding $event.id.
This is not available in the UI from what I know.
[Also, you might have to get the updated Wappler maps JS (if you are not on beta) from here.
Thanks to your answer I was confident that this was indeed the right approach. I just tried the whole setup over again (seemingly the same as my previous attempt). However, this time it worked!
What doesn't work is actually saving the API key. But I already replied to this older thread:
So hopefully this will get fixed soon, now my maps have this ugly 'for development purposes only' watermark.
I don’t recollect the specifics around this conversation, to be honest.
In the dynamic on:click event of marker, you will see a binding available to get the ID of the marker. This ID should be the ID from your dynamic markers list data source binding.
Expecting that your data detail would have the same data source as the markers, you should be able to to select using the marker ID binding.