
Originally Posted by
wudgcd
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!
Bookmarks