Google Maps Marker Events

Hi, new user and first post so go easy on me :smiley: Loving Wappler, finally get to realise my ideas, done more in a few weeks than I could have imagined but now I am stuck.

I have google maps and dynamic markers working fine, what I need to be able to do is to click the marker on the map and run a serverconnect in the client using the ID of the marker that was clicked so that I can update another column with information.

I have read the forums and from what I understand there is no event available in wappler when a marker on a google maps is clicked. My knowledge of javascript is poor but I can cut and paste really well :slight_smile: so I have been trying to utilise Googles own event listener on click but I cannot figure out how to get a reference to the markers from wappler to pass to the function or if this is even possible.

addListener(marker, ‘click’, function (){
do stuff}

I followed some of the other examples posted in the forums and I have lines and polygons working which use google code and references wappler google maps but I am at a loss with markers.

I feel like the data is there but I just can’t get access to it, I have tried using the “markers” variable that is created by wappler but to no avail.

dmx-bind:markers=“SC_asset.data.asset_query” marker-id=“ASS_id”

Any help appreciated even if its “no you can’t do it” or “you need to use Google API’s only”

Many thanks, Paul

Community Page
Last updated: