Select to view content in your preferred language

how to find the xmin ymin xmax ymax

18174
11
04-24-2011 10:45 PM
Sophialim
Emerging Contributor
hi
i am using the
var startExtent = new esri.geometry.Extent(xmin, ymin, xmax, ymax, new esri.SpatialReference({ wkid: 4326 }));
            omap.map.setExtent(startExtent);
But how to find the xmin, ymin, xmax and ymax
the spatial reference 4326 need to change?
0 Kudos
11 Replies
DianaBenedict
Frequent Contributor
Once you have zoomed to your area of interest in Firefox, use the console window in Firebug and type the following:

dojo.toJson(map.extent.toJson());


That is assuming the the esri.map object is called map
0 Kudos
SteveCole
Honored Contributor
@Diana-

Thanks for posting that! I've been looking for that reference for the last week and couldn't remember where I had originally read that. You just saved me a whole lot of headache trying to find it again. 😄
0 Kudos