Accessing a map layer with a different spatial reference

The spatial projection that you want to show in the map is specified in the DATASETS node in the MapDrawerDatasets configuration. If no value is specified, the default projection us Web Mercator.

You can accurately show a map layer with a different projection by using the srs attribute in the configuration. ESRI converts the original projection of the map layer to the one that you specify.

This example shows how to access a layer using a different spatial reference:

<CONFIG mapservice="http://Server/ArcGIS/services/SampleService/MapServer" 
geometryservice="http://Server/ArcGIS/services/Geometry/GeometryServer"
srs ="28356">
</CONFIG>

This example shows how to access a layer using a different service and a different spatial projection:

<CONFIG mapservice="http://Server/ArcGIS/services/SampleService1/MapServer" 
geometryservice="http://SampleServer/ArcGIS/services/Geometry/
GeometryServer">
<SERVICE
mapservice="http://Server/ArcGIS/services/SampleService2/MapServer" 
geometryservice="http://SampleServer/ArcGIS/services/Geometry/
GeometryServer”
   srs ="28356">
   <DATASET id="Layer" />
</SERVICE>
</CONFIG>