AnsweredAssumed Answered

Get the current extents of the map

Question asked by mukta.puri on Oct 14, 2016
Latest reply on Oct 14, 2016 by thejus.kambi

I've added a map by setting the center and zoom on the mapView like so:


var view = new MapView({
    container: "viewDiv",
    map: map,
    zoom: 4,
    center: [15, 65]


After the map loads, we need to determine the current bounds of the map so we can query our database for data within those extents.


What is the best way to determine the current map extent after the map has loaded?