Select to view content in your preferred language

MinScale, MaxScale

3278
3
12-03-2010 03:48 AM
MannusEtten
Emerging Contributor
It try to build a layerlist which shows the visibility of layers depending on the scale. I have scale dependent layers. For example some layers are only visible between 1:0 and 1:25000.

When I get the layerinfo array from my arcgisdynamicmapservice-object I find for all layers a minscale of 0 and maxscale of 0. If I look in the REST-services directory I see the min-scale and max-scale are set correctly.

See attachments for the differences. I found out that the min/maxscale for featurelayers is set correctly.
0 Kudos
3 Replies
by Anonymous User
Not applicable
0 Kudos
DominiqueBroux
Esri Frequent Contributor
Support for minScale and maxScale has beend added very recently.
So I would need to know which version you are using?

That being said I don't reproduce your issue with the latest version (see screenshot).

Another question : how and when is populated your LayerInfoArray?
The array in a dynamicmapservice layer is called 'Layers', in your watch window it's called 'LayerInfoArray' so I guess it's not the same and the issue could come from the copy.
0 Kudos
by Anonymous User
Not applicable
Original User: jenniferdnery

I was able to reproduce this on a service from v9.31:
http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer

Dominique is right, it is fairly new. This is not an issue for a service from v10.01:
http://services.arcgisonline.com/ArcGIS/rest/services/Specialty/Soil_Survey_Map/MapServer

Kindly refer to the following documentation:
http://help.arcgis.com/en/arcgisserver/10.0/apis/rest/index.html
The Map Service resource now includes scale information (minScale and maxScale) for layers.
0 Kudos