jeffreykemp / jk64-plugin-reportmap

Report Google Map APEX Plugin
https://jeffreykemp.github.io/jk64-plugin-reportmap/
MIT License
42 stars 16 forks source link

"GET" Value of clicked marker #150

Closed simongadd closed 3 years ago

simongadd commented 3 years ago

Hi Jeff

May I ask, is there a simple way to 'get' the value of a 'clicked' marker?

I can create the Dynamic Action based on the 'markerClick' event but I'm not sure about the syntax I should use to get the value of the 'id' of the selected marker.

I want to set an APEX item value to the value of the marker and then refresh a report.

Any input for a javascript novice would be most appreciated.

Many thanks

Kind regards

Simon

jeffreykemp commented 3 years ago

Refer to: https://github.com/jeffreykemp/jk64-plugin-reportmap/wiki/Plugin-Events-Reference#markerclick

In your trigger action you can refer to this.data.id.

simongadd commented 3 years ago

Perfect - Many thanks Jeff