Issue with setting 'extent' property of mapview

05-23-2022 01:24 AM
New Contributor

The issue is that when the extent property of a mapview is changed, it causes the map to jump to (what appears to be) an arbitrary location. 

It can be seen in this codepen -

when we remove the comment on line 40, the map location jumps to a different location.

What is the reason for this issue? How are we supposed to use the extent property of MapView.

0 Kudos
1 Reply
Frequent Contributor

Either set the zoom and center or the extent, but don't try to do both or the map has to move from one location to another.

0 Kudos