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

view_changed

Fired when the view is changed by the user due to panning or zooming.


Event Result

An json object with the following properties:

MouseMode Result Type
boundingBox GeoJSON bounding box
zoom integer
center GeoJSON Point

Example

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

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

    map.fitToBoundingBox([10,10,20,20]);
});