Hide Table of Contents
esri/dijit/util
esri/layer/pixelFilters
esri/process
esri/support
esri/workers
Class: LayerMapSource

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.

Samples

Search for samples that use this class.

Class hierarchy

esri/layers/LayerSource
|_esri/layers/LayerMapSource

Constructors

NameSummary
new LayerMapSource(json?)Creates a new LayerMapSource object.

Properties

NameTypeSummary
gdbVersionStringWhen supported, specify the version in an SDE workspace that the layer will use.
mapLayerIdNumberThe layer id for a sub-layer in the current map service.
typeStringUsed to describe the origin of the LayerSource.

Methods

NameReturn typeSummary
toJson()ObjectConverts object to its ArcGIS Server JSON representation.
Constructor Details

new LayerMapSource(json?)

Creates a new LayerMapSource object.
Parameters:
<Object> json Optional JSON object representing the LayerMapSource.
Property Details

<String> gdbVersion

When supported, specify the version in an SDE workspace that the layer will use.

<Number> mapLayerId

The layer id for a sub-layer in the current map service.

<String> type

Used to describe the origin of the LayerSource.
Method Details

toJson()

Converts object to its ArcGIS Server JSON representation.
Return type: Object
Show Modal