Select to view content in your preferred language

InitialExtents Coordinate system

1176
2
09-27-2010 09:40 PM
MattShetzer
Deactivated User
The Flex 2.1 Viewer uses the following Initial Extent.

<map initialextent="-14083000 3139000 -10879000 5458000" top="40">

How would you change this to Latitude/Longitude ?

Thanks!

Matt Shetzer
Tags (2)
0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus
Matt,

   I am not sure what you are really after with that question but, if you just change the values to Lat Lon i.e some geographic projection and you are still using the basemaps that come standard in the FlexViewer 2.1 app then you might get undesired results as those basemaps are in Web mercator and not WGS 1984.

   You could be the extent of your area of interest using the Extent Helper and get the web mercator values that you need. http://help.arcgis.com/en/webapps/flexviewer/help/extenthelper/flexviewer_extenthelper.html

   Or you can look into the new WebMercatorExtent object and get your values from code.
http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/geometry/WebMercatorExtent.html
0 Kudos
MattShetzer
Deactivated User
Extent Helper will do the job ! 

Thanks for the great solution Robert.

Matt
0 Kudos