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?
Solved! Go to Solution.