require(["esri/layers/LayerMapSource"], function(LayerMapSource) { /* code goes here */ });Description
(Added at v2.7)
The LayerMapSource class defines and provides information about an existing map service layer.
Requires ArcGIS Server 10.1 or greater. SamplesSearch for
samplesthat use this class.
Class hierarchyesri/layers/LayerSource |_esri/layers/LayerMapSourceConstructors Properties gdbVersion
String
When supported, specify the version in an SDE workspace that the layer will use. mapLayerId Number
The layer id for a sub-layer in the current map service. type String
Used to describe the origin of the LayerSource. Methods toJson() Object
Converts object to its ArcGIS Server JSON representation.
Constructor Details
Creates a new LayerMapSource object.
Parameters: <Object
> json Optional JSON object representing the LayerMapSource.
Property Details
When supported, specify the version in an SDE workspace that the layer will use.
The layer id for a sub-layer in the current map service.
Used to describe the origin of the LayerSource.
Method Details
Converts object to its ArcGIS Server JSON representation.
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