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/layerdatasource-amd.html below:

LayerDataSource | API Reference | ArcGIS API for JavaScript 3.46

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. 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:
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