dojo.require("esri.layers.LayerDataSource")
Description
(Added at v2.7)
The LayerDataSource class defines and provides information about a layer created on the fly from a data source.
Requires ArcGIS Server 10.1 or greater.
Samples
Search for
samples that use this class.
Class hierarchy
esri/layers.LayerSource
|_esri/layers.LayerDataSource
Constructors
Properties
Methods
toJson() | Object | Converts object to its ArcGIS Server JSON representation. |
Constructor Details
Creates a new LayerDataSource object.
Parameters:
<Object > json |
Optional |
JSON object representing the LayerDataSource. |
Sample:
var layerSource = new esri.layers.LayerDataSource();
layerSource.dataSource = dataSource;
Property Details
The data source used to create a dynamic data layer on the fly. The data source can be one of the following:
Sample:
var dataSource = new esri.layers.TableDataSource();
dataSource.workspaceId = "d203";
dataSource.dataSourceName = "sde.SDE.states";
var layerSource = new esri.layers.LayerDataSource();
layerSource.dataSource = dataSource;
Used to describe the origin of the LayerSource.
Method Details
Converts object to its ArcGIS Server JSON representation.