With North up, xmin and ymin is the upper left of the extent and xmax and xmax, ymax is the lower right (same way you typically draw a box to zoom).
In really it should not matter if you reverse these point or even used the lower left and upper right combo. Having said that I did reverse the coordinates for kicks so that it read:initExtent = new esri.geometry.Extent({ "xmin": 1581479.7741, "ymin": 1433679.2476, "xmax": 1444848.0341, "ymax": 1535243.2771, "spatialReference": { "wkid": 2903 } });This appeared to work initially but I soon discovered that it sometimes shifted right (remember originally it shifted up - north).So I finally defined the extent as lower left corner to upper right which meets the rule you stated that xmax should be greater than xmin and ymax should be greater than ymin.initExtent = new esri.geometry.Extent({ "xmin": 1444848.0341, "ymin": 1433679.2476, "xmax": 1581479.7741, "ymax": 1535243.2771, "spatialReference": { "wkid": 2903 } });This works! This is a Bug - it should work any of the ways I stated!
Thanks. Looking at the extent you posted, ymin is greater than ymax which is probably why you're seeing the map do unexpected things. Do you still have issues if you construct a proper extent?
What is the spatial reference of your map?
Please post a simple code sample that shows how you're setting extents. A full page with HTML/JS that reproduces the issue is ideal.
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.