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

getInitialBoundingBox

Get the initial bounding box of the map. The format of the result is an array of numbers and conforms to the GeoJSON standard for a bounding box i.e. [minX, minY, maxX, maxY].

Parameters

No parameters.

Example

var map = new Mapzania.Map("map-div", "WORLD");
console.log(map.getInitialBoundingBox());

//OUTPUT
[3.6, -10.5, 4.7, -8.6]