User Manual

Mouse and Drawing Behaviour

The Map Object provides a number of methods for changing mouse and drawing behaviour namely:

JavaScript


window.onload = function () {
    var map = new Mapzania.Map("map-div", "LONDON", function () {
        map.setMouseMode(Mapzania.MouseModes.DrawPolygon);
    });
};

The following interactive examples show this in action: