Notes

Drag a pin to move it to another location.

The map region has static id "mymap".

Dynamic action on plugin event markerClick sets P2_CLICKED.

Dynamic action on plugin event markerDrag sets P2_DRAGGED.

Dynamic action on click of the Refresh button does an ordinary Refresh action on the region. This reloads the data for the map and shows the pins on the map.