Select to view content in your preferred language

Coordinate Widget

1392
3
12-27-2010 05:17 AM
JoshuaCoates
Deactivated User
I am trying to understand exactly how the new coordinate widget works in Flex Viewer 2.2 (uncompiled)....

I currently have all my services projected in state plane, however, I would like for the coordinates in my flex map to appear as latitude and longitude (degrees). How can I do this? Can I set one of the layers to WGS1984 and then it would work?

Also, I think it will help to clarify how I have my application configured. I have my <basemaps> that comes from ESRI basemaps and was originally projected as WGS1984, I then re-projected to state plane (to match all of my data and services that are projected in state plane), defined my extent to the county I am working with, and then saved that mxd to use as my <basemaps> layer. All of my <operationallayers> are in state plane.

Any ideas would be greatly appreciated.

Josh C.
Tags (2)
0 Kudos
3 Replies
JonFisher
Emerging Contributor
I am trying to understand exactly how the new coordinate widget works in Flex Viewer 2.2 (uncompiled)....

I currently have all my services projected in state plane, however, I would like for the coordinates in my flex map to appear as latitude and longitude (degrees). How can I do this? Can I set one of the layers to WGS1984 and then it would work?

Also, I think it will help to clarify how I have my application configured. I have my <basemaps> that comes from ESRI basemaps and was originally projected as WGS1984, I then re-projected to state plane (to match all of my data and services that are projected in state plane), defined my extent to the county I am working with, and then saved that mxd to use as my <basemaps> layer. All of my <operationallayers> are in state plane.

Any ideas would be greatly appreciated.

Josh C.


I believe that the projection of the map comes from the basemap, which in your case is projected to state plane. Only the following map projections are supported by this widget:
wkid === 102100
wkid === 102113
wkid === 3857
wkid === 4326
wkid === 4269
wkid === 4267

So I believe you would need to write your section of code for state plane and specify the transformation to use to get geographic output.

If you were using one of the supported WKIDs you would just have to specify <outputunit>geo</outputunit> in the xml file to get lat/long output (or "dms" for degrees minutes seconds).
0 Kudos
JoshuaCoates
Deactivated User
Would it work if I just changed the projection of my basemap to one of the supported projections? If I did this, and my basemap is cached, would I have to re-cache?
0 Kudos
JonFisher
Emerging Contributor
Would it work if I just changed the projection of my basemap to one of the supported projections? If I did this, and my basemap is cached, would I have to re-cache?


I believe the answer is yes it would work, and yes you would have to re-cache. Alternatively, you could just use one of the ESRI basemaps to avoid having to cache, and simply manually specify the LODs and full extent to prevent people from zooming way out beyond your area of interest.

Your dynamic map services should show up fine on a basemap of a different projection, although they will be a bit slower due to reprojecting on the fly.
0 Kudos