Select to view content in your preferred language

How to set the image service layer to display after certain scale?

487
2
07-14-2010 06:30 AM
weiliang
Deactivated User
Hi,

Since I can't set the scale dependency for the image service in ArcMap (it is directly embedded into map control in xaml), and we don't want this image service shows up in our website at any scale, how can I set this attribute through code?

Thanks,

Wei
0 Kudos
2 Replies
DominiqueBroux
Esri Frequent Contributor
You might change the visibility of your layer in the 'ExtentChanged' map event.

To calculate the scale from the map resolution, see the scale discussion in the class reference for the Map class:
http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Map.html
0 Kudos
weiliang
Deactivated User
Thanks for your reply, Dominique. It works.

Best,

Wei
0 Kudos