Skip to main content
Matt Ellis's user avatar
Matt Ellis's user avatar
Matt Ellis's user avatar
Matt Ellis
  • Member for 5 years
  • Last seen more than 3 years ago
Loading…
awarded
awarded
awarded
revised
Getting maximum and minimum latitude and longitude of view
Expanded the answer slightly by adding how to get the extent upon loading of the mapview
Loading…
comment
Getting maximum and minimum latitude and longitude of view
Hi, I have tried using view.extent but when I output it via console.log(view.extent) it is null. It does work when I call this when the pointer moves e.g. view.on("pointer-move", function(){console.log(view.extent)}); though. Is there anyway to access the extent as soon as the page loads?
Loading…