Select to view content in your preferred language

Setting Coordinate System in Sample Flex Viewer

2549
1
04-21-2010 12:38 PM
JoeGallo
Emerging Contributor
Hi,

Does anyone have a clue on how to show the sample flex viewer in a different coordinate system other than WGS84?

I am using the default ESRI base maps but want to sho my map in state plane vs. WGS.

Any clues?


<map initialExtent="-78.0 31.0 -99.5 33.5" fullExtent="-78.0 31.0 -79.5 33.5">
  <basemaps menu="menuMap" shortcutmenu="true">
   <mapservice label="Street Map" type="tiled" visible="true" alpha="1" icon="com/esri/solutions/flexviewer/assets/images/icons/i_highway.png">http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer</mapservice>
   <mapservice label="Satellite Map" type="tiled" visible="false" alpha="1" icon="com/esri/solutions/flexviewer/assets/images/icons/i_shuttle.png">http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_Imagery_World_2D/MapServer</mapservice>  
  </basemaps>
  <livemaps>
   <mapservice label="Species Data" preload="minimized" type="dynamic" visible="true" alpha="0.8" shortcutmenu="true">http://gisserver/ArcGIS/rest/services/owls/MapServer</mapservice>
   <mapservice label="Census Demographics" type="dynamic" visible="false" alpha="0.4">http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer</mapservice>
  </livemaps>
</map>
Tags (2)
0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus
jb3t,

   Setting the Spatial Reference of the map is not going to help you in your situation. The ESRI Basemaps that you are using are in WGS 1984 as you know, but they are also cached which means that if you set the maps spatial reference to State Plane then those base maps would not be usable because cached map services can not be re-projected on the fly by ArcGIS Server like non-cached services can.

   So you have two options.

1. Make sure your map services that are State Plane are added to the map as ArcGISDynamicMapService's that way ArcGIS Server can re-project then on the fly to WGS 1984.

2. Add The ESRI Basemaps as ArcGISDynamicMapService's that way ArcGIS Server can re-project then on the fly to State Plane.
0 Kudos