Click a pin to get data about it, including the values for up to 10 "flex fields" that were supplied in the query. This example generates random 3-character strings.
Query for map plugin:
select c003 as lat, c004 as lng, c002 as name, c001 as id
,c002 || ' (id=' || c001 || ')' as info
,c009 as attr01
,c010 as attr02
,c011 as attr03
from apex_collections
where collection_name = 'MAP'
When a pin is clicked, a dynamic action on the markerClick event gets the details for the pin, including the ten flex fields. It has an Action, Set Value on P17_DATA, with JavaScript Expression:
"this.data.attr01=" + this.data.attr01
+ " this.data.attr02=" + this.data.attr02
+ " this.data.attr03=" + this.data.attr03