I need to define a layer that is displayed according to a range of scales.
The examples I find only use ZoomLevelSet.ZoomLevel01.DefaultAreaStyle that do not supply my need, as it is set several precissoZoomLevelSet.ZoomLevel01.DefaultAreaStyle to the same layer.
Is there any option where I can set the scale minimum and maximum scale to display thelayers and labels.
Ex
ZoomLevel zoomlevel1 ZoomLevel = new ();
zoomlevel1.MinScale = 5000;
zoom1evel1.MaxScale = 10000;
Range of scales
Carlos Angelo,
You need to use the ApplyUntilZoomLevel property of ZoomLevel to control between what scale and what scale you want your layer to display. For example, in the code below, I have the layer showing between 1:59,059,179 and 1:1,126. Those scale values are the default ones for ZoomLevel 01 and ZoomLevel 12. You can also use your own custom zoom level sets if you want more control. See the Code Community sample Custom Zoom Level for that wiki.thinkgeo.com/wiki/Map_Suite_De...oom_Levels
shapeFileFeatureLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = AreaStyles.CreateSimpleAreaStyle(GeoColor.StandardColors.Red);
shapeFileFeatureLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level12;
double zoomLevel01Scale = shapeFileFeatureLayer.ZoomLevelSet.ZoomLevel01.Scale;
double zoomLevel12Scale = shapeFileFeatureLayer.ZoomLevelSet.ZoomLevel12.Scale;