Select to view content in your preferred language

Labels always on even with scale range

629
2
11-17-2011 09:05 AM
RobertoOliveira
Deactivated User
Hi,

I'm with a little problem!
I have a map with some layers! everything seens to work well, include the labels.

In my MXD file, I have configured to hide labels if the scale is out beyond 1:1.500 (Layer properties / Labels / Scale Range / Don't show labels when zoomed / Out beyond 1:1.500).
In the desktop, everything worked well! Tested on scale 1:2000 and the label don't show! on scale 1:1000 show.

Then, I created a silverlight application, and load the map dynamically:

XML:
<esri:Map x:Name="Mapa" ZoomDuration="0:00:02" PanDuration="0:00:02" />

C#
Mapa.Layers.Clear();
ArcGISDynamicMapServiceLayer baseMap = new ArcGISDynamicMapServiceLayer();
baseMap.Url = "http://.......";
baseMap.ID = "MyMapID";
baseMap.Initialized += MyMapID_Initialized;
baseMap.InitializationFailed += MyMapID_InitializationFailed;
Mapa.Layers.Add(baseMap);

the map show on the silverlight application, but the labels always is on, no matter the scale.

Any tips?

Thanks.
0 Kudos
2 Replies
RobertoOliveira
Deactivated User
Don't need anymore!
Working now.
0 Kudos
SeanSweeney
Regular Contributor
What was the solution?
0 Kudos