Click a pin to get data about it.
The map region has static id "mymap".
Query for map plugin:
select c003 as lat, c004 as lng, c002 as name, c001 as id,
c002 || ' (id=' || c001 || ')' as info
from apex_collections
where collection_name = 'MAP'
Dynamic action on plugin event markerClick with actions Set Value on P1_CLICKED, to JavaScript Expressions:
"this.data.id=" + this.data.id + " this.data.name=" + this.data.name
and for P1_POSITION:
this.data.lat + "," + this.data.lng
This page only uses declarative APEX features (no added javascript).