Select to view content in your preferred language

Switch ArcGISDynamicMapServiceLayer to ArcGISTiledcMapServiceLayer using code behind

526
1
10-31-2013 08:54 PM
MohammadSharique
Emerging Contributor
Hi All

I have first Service of type ArcGISDynamicMapServiceLayer and seconed is of type ArcGISTiledcMapServiceLayer , on page load dynamic service is loading , then i need to switch to tiled type service , but when i switch existing disappear and tiled does not load ,

but if i load tiled on page load then i am able to switch from tiled to dynamic , but in that case graphic picture marker symbol is not coming .. 

Please help me . i stuck here.

thank you.
0 Kudos
1 Reply
ArtemisFili
Esri Contributor
This can be an issue with the spatial reference if the dynamic layer's spatial reference is different than the tiled layer's spatial reference. When you add the dynamic layer first, the tiled layer is not able to reproject. Tiled layers do not support reprojection, and will not be displayed if the Map's SpatialReference does not match the spatial reference of the tiled layer. If you add the tiled layer first, the dynamic layer will automatically re-project its map contents to match the map's spatial reference.
0 Kudos