5

I am using ESRI's Silverlight API to display a map with one dynamic layer. Occasionally (not always), when that layer is initialized, the SpatialReference attribute will be null. I'm not sure why this is, since this map service has a spatial reference set to WKID 102113.

Does anyone know why the SpatialReference would be showing up as null?

asked Mar 11, 2011 at 20:28

1 Answer 1

4

Is one layer bigger than your Map Extent?

The following screen shot shows three different Map Controls that have the same layers added to each Map but have dramatically different drawing results because of having different Map.SpatialReference values set. Each Map has its Extent set to approximately to the same geographic area of coverage given the different SpatialReference’s of the layers. The layers being added to each Map Control, in drawing order, are:

ArcGISTiledMapServiceLayer with a SpatialReference WKID = 4326
ArcGISDynamicMapServiceLayer with a SpatialReference WKID = 4269
ArcGISDynamicMapServiceLayer with a SpatialReference WKID = 102113 

Map1 displays all three layers without any problem. The ArcGISTiledMapServiceLayer (1) automatically sets the default Map.SpatialReference (WKID = 4326) value and the other layers (2 and 3) have their SpatialReference re-projected on-the-fly by ArcGIS Server.

Map2 only displays layers 2 and 3 (the ArcGISDynamicMapServiceLayer’s) because the Map.SpatialReference (WKID = 4269) has been set manually to something that is different than what the ArcGISTiledMapServiceLayer.SpatialReference is.

Map3 only displays layers 2 and 3 (the ArcGISDynamicMapServiceLayer’s) because the Map.SpatialReference (WKID = 102113) has been set manually to something that is different than what the ArcGISTiledMapServiceLayer.SpatialReference is.

The screen shot matches the code examples provided in this document.

enter image description here

http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Map~SpatialReference.html

answered Mar 11, 2011 at 20:53

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.