AnsweredAssumed Answered

Change BaseMap layer using  ArcGISTiledMapServiceLayer in .net ( c#)

Question asked by tapatio.ca on Feb 6, 2015

hi everyone,

I'm trying to create a baseMap switcher in WPF with c#.  In older versions of ArcObjects, what we did is to load all basemap layers and set the selected basemap opacity to 1 and the others to 0, that did the trick.

 

Now with the latest version of the sdk, I'm trying to do that but this time I'm removing and adding the layer, but that doesn't work: the application only shows the first added ArcGISTiledMapServiceLayer. I tried adding all ArcGISTiledMapServiceLayer  layars and switch  opacity in to 0/1 or the isVisible property to true / false but that doesn't work either.

 

Is there another way to do that or there are limitations regarding to ArcGISTiledMapServiceLayer  ?

 

Thank you for your help

Outcomes