User Manual

Map Events

The map can respond to a number of Events. These include changes in layers and responses to changes in MouseMode.

The methods that are used for listening to events are:

JavaScript


window.onload = function () {
    var map = new Mapzania.Map("map-div","LONDON", function(){
        map.on("drawing_done", function (data) {
            console.log(data);
        });
    });
}

The following interactive examples show this in action: