A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developers.arcgis.com/en/javascript/jsapi/layerinfo-amd.html below:

LayerInfo | API Reference | ArcGIS API for JavaScript 3.46

require(["esri/layers/LayerInfo"], function(LayerInfo) { /* code goes here */ });
Description

(Added at v1.0)

Contains information about each layer in a map service. LayerInfo has no constructor.

Samples

Search for

samples

that use this class.

Subclasses Properties defaultVisibility Boolean Default visibility of the layers in the map service. id Number Layer ID assigned by ArcGIS Server for a layer. maxScale Number The maximum visible scale for each layer in the map service. minScale Number The minimum visible scale for each layer in the map service. name String Layer name as defined in the map service. parentLayerId Number If the layer is part of a group layer, it will include the parent ID of the group layer. subLayerIds Number[] If the layer is a parent layer, it will have one or more sub layers included in an array.

Property Details

Default visibility of the layers in the map service.

Known values: true | false

Layer ID assigned by ArcGIS Server for a layer. The topmost layer is 0, and each layer follows sequentially. If a layer is added or removed from the source map document, the ID values will shift accordingly.

The maximum visible scale for each layer in the map service. If the map is zoomed in beyond this scale the layer will not be visible. A value of 0 means that the layer does not have a maximum scale. This property is only available for map services published using ArcGIS Server 10 SP1 or later. (Added at v2.1)

The minimum visible scale for each layer in the map service. If the map is zoomed out beyond this scale the layer will not be visible. A value of 0 means that the layer does not have a minimum scale. This property is only available for map services published using ArcGIS Server 10 SP1 or later. (Added at v2.1)

Layer name as defined in the map service.

If the layer is part of a group layer, it will include the parent ID of the group layer. Otherwise, the value is -1. If a layer is added or removed from the source map document, the ID values will shift accordingly.

If the layer is a parent layer, it will have one or more sub layers included in an array. Otherwise, the value is null. If a layer is added or removed from the source map document, the ID values will shift accordingly.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4