Spatial refernce when using WGS84 co-ordinate system

2405
1
07-13-2010 09:59 PM
xariaD
by
New Contributor III
How to get/specify spatial reference of a map if we are using WGS84 for our map co-ordinate system?
0 Kudos
1 Reply
DominiqueBroux
Esri Frequent Contributor
You get the spatial reference of a map by the read-only 'SpatialReference' property.

You can set the spatial reference by setting the map extent (WGS84 = 4326). Example:
 
<esri:Map>
<esri:Map.Extent>
<esriGeometry:Envelope XMin="-180" YMin="-90" XMax="180" YMax="90" >
<esriGeometry:Envelope.SpatialReference>
<esriGeometry:SpatialReference WKID="4326"/>
</esriGeometry:Envelope.SpatialReference>
</esriGeometry:Envelope>
</esri:Map.Extent>
...
</esri:Map>
0 Kudos