Hi Runny,
Welcome to Map Suite discussion forum and any question please be free to post here.
Yes, the markers are created with coordinates on the client. It allows us to attach any event to it using JavaScript. Please refer to the code as following. Please pay a attention to the comments "todo:"
<script language="javascript" type="text/javascript">
var OnMapCreating = function (map) {
OpenLayers.Layer.Markers.prototype.addMarker = function (marker) {
this.markers.push(marker);
if (this.opacity != null) {
marker.setOpacity(this.opacity);
}
if (this.map && this.map.getExtent()) {
marker.map = this.map;
this.drawMarker(marker);
}
// Register the mouse hover event
marker.events.register('mouseover', marker, function (evt) {
// Todo: Add your own custom code
// .............
// Find the MarkerLayer and refresh
var layer = map.getLayer(marker.parentId);
layer.redraw();
});
}
}
<script>
Thanks,
Johnny