require(["esri/layers/LayerDataSource"], function(LayerDataSource) { /* code goes here */ });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. SamplesSearch for
samplesthat use this class.
Class hierarchyesri/layers/LayerSource |_esri/layers/LayerDataSourceConstructors 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:
require([ "esri/layers/LayerDataSource", ... ], function(LayerDataSource, ... ) { var layerSource = new LayerDataSource(); layerSource.dataSource = dataSource; ... });
Property Details
Sample:require([ "esri/layers/LayerDataSource", ... ], function(LayerDataSource, ... ) { var dataSource = new 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.
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