Map Events
JavaScript is event driven when used within a web browser, which means that user interactions cause events to occur.
Event Listeners
Event handling within the QuickMap® API is enabled by using the utility class Events to register event listeners.
The API Reference defines Events available for applicable classes.
var map = new MapDS.Maps.Map( "map", {zoom:9, centre:new MapDS.LatLng( -33.85011, 151.211626 )} );
MapDS.Events.addListener(map, "click", function() {
alert("You clicked the map.");
});