Select to view content in your preferred language

Specifying the spatial reference of my map

687
3
06-07-2012 06:04 AM
AlaeddineSaadaoui
Regular Contributor
Hi all,
I would like to use this layer:       

                  <layer label="Streets" type="tiled" visible="true"
                   icon="assets/images/basemap_streets.jpg"
                   url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/>

And the extent of my map is this one:

                 <esri:Extent id="initialExtent"
      xmin="328613" ymin="4059819" xmax="795339" ymax="4555914" >
   <esri:SpatialReference wkid="26917"/>
  </esri:Extent>
I was able to add the initial extent to the xml configuration file but I am wondering where I could add the spatial reference wkid="26917" to my configuration file.
Thank you in advance.
Saadaoui Alaeddine.
Rahall Transportation Institute.
Tags (2)
0 Kudos
3 Replies
AnthonyGiles
Honored Contributor
Saadaoui

The spatial reference of your application is automatically set to the spatial reference of the first map service added.

Regards

Anthony
0 Kudos
DasaPaddock
Esri Regular Contributor
0 Kudos
AlaeddineSaadaoui
Regular Contributor
I will try to specify the spatial reference for the first layer and add the second one.
Thank you.
Alaeddine Saadaoui.
0 Kudos