JS API
Map Object
QueryEngine Object
Layer Object
Feature Object
Query Object
GeoJson Function Library (Experimental)

mouse_mode_set

Fired when the user changes the MouseMode of the Map object.


Event Result

An integer value based on the MouseMode that was set.

MouseMode Value
Pan 1
DrawPoint 3
DrawLine 4
DrawPolygon 5

Example

var map = new Mapzania.Map("map-div", "LONDON", function () {

    map.on("mouse_mode_set", function (data) {
        console.log(data);
    });

    map.setMouseMode(Mapzania.MouseModes.Pan);
});