AttributeLoader Class
Attribute Loader class.
Handles the extraction of attribute data from map services, and transforms it to standard format
Imports RAMP Modules:
Item Index
Methods
addLayerData
-
layerData
-
featureData
Will generate object id indexes and parent pointers on a layer data object. Assumes data object already has features and object id field defined
extractAttributeData
-
layer
Will extract the attribute data from a file based layer.
Parameters:
-
layer
Objectthe layer object
loadAttributeData
-
layerId
-
layerUrl
-
layerType
Will download the attribute data for a layer.
loadDataBatch
-
maxId
-
maxBatch
-
layerUrl
-
idField
-
layerId
-
callerDef
Recursive function to load a full set of attributes, regardless of the maximum output size of the service Passes result back on the provided Deferred object
Parameters:
-
maxId
Integerlargest object id that has already been downloaded
-
maxBatch
Integermaximum number of results the service will return. if -1, means currently unknown
-
layerUrl
StringURL to feature layer endpoint
-
idField
Stringname of attribute containing the object id for the layer
-
layerId
Stringid of the layer
-
callerDef
Dojo/Deferreddeferred object that resolves when current data has been downloaded