Select to view content in your preferred language

Problem with Legend - Enabling active layers

794
3
08-21-2012 06:08 AM
NICHOLASCALLAGHAN
Deactivated User
I have a web application that was developed in silverlight and set up for ArcServer10 in a testing environment.  To bypass the upgrade of 10.1 after the applications being in Production, we upgraded and tested in a Development Environment with 10.1 and silverlight 4.1.1.  Our application team has the web application in silverlight 5. 

In working in the Development side some functionality of the legend does not exist.  Four particular layers intermingled with other layers seem to not be recognized.  Meaning, the user can not interactively make these layers active and inactive. 

The following is from the 10.1 map service(also attached).
[ATTACH=CONFIG]17119[/ATTACH]

This proves to me that the legend is being created based on the layers of the map service.  What i am having a hard time about is why the silverlight application on the app server is not making these active.  **NOTE  I don't have the code at this time.  if you can help and want to see it i can produce a string of the code. 

My problem is I do not code in silverlight and the contractor keeps blaming the upgrade of ArcGIS. I need a hint or solution to this problem.


nick
0 Kudos
3 Replies
DominiqueBroux
Esri Frequent Contributor
What kind of service is it?

If it's a cached map service, you can't turn on/off the sublayers since the images are pregenerated and stored at the server side.
0 Kudos
NICHOLASCALLAGHAN
Deactivated User
This is a 'Dynamically from the data'  service.  The manager under caching properties states 'Draw this map service: Dynamically from the data'

To take it a step further,  all the layers in the map service are/were created the same.  So i have eight layers, and they either are interactive by turning on/off or not.  The data is being pulled from the same location...

One difference that I could point out is that the layers that i am having difficult with making active/inactive are layers that are periodically being refreshed.  Railroad crossing is a nightly refresh.   State Routes is pretty static data set. 

hope this explains a little more.
0 Kudos
NicoleSchmidt
Emerging Contributor
We are trying to help a client with a similar problem with our Silverlight web application.  They upgraded to 10.1 and their dynamic map service will not allow them to turn off (or on) several of the layers in their map service.  This worked fine with 10.0.  We thought maybe this was because these layers had some scale dependent rendering set (we thought that perhaps some rules had changed with 10.1 with these properties).  However,  I cannot replicate this on my 10.1 server using layers with scale dependencies.  So if anyone comes up with any ideas on this I would love to know!
0 Kudos