Class: StaLayer

vef.map.layer.StaLayer(config, cache, id)

STA Layer Implementation

Constructor

new StaLayer(config, cache, id)

Set all properties for the layer based on the options object.
Parameters:
Name Type Description
config object
cache object
id string
Author:
Source:

Members

getJSONValue

Source:

Methods

(async) fetch_(baseUrl, max, params) → {Array.<object>}

Parameters:
Name Type Description
baseUrl string
max number
params object
Source:
Returns:
values
Type
Array.<object>

getAttributeNames() → {Array.<string>}

Returns an array of possible attribute names for the checkbox filter with the following format convention: "/" Examples: 'Sensors/properties/isVariantOf/name', 'Datastreams/unitOfMeasurement/symbol', 'ObservedProperties/name', 'Thing/name'
Source:
Returns:
array of attribute names
Type
Array.<string>

(async) getDatastreams(thingUrl) → {Promise}

Return all datastreams for the given thing.
Parameters:
Name Type Description
thingUrl *
Source:
Returns:
Type
Promise

(async) getFeatureInfo() → {Promise}

Get Info of the last clicked features, requests datastreams for each clicked thing
Source:
Returns:
feature info
Type
Promise

(async) getObservations(observationsUrl) → {Promise}

Return the observations for an observations url of a selected datastream
Parameters:
Name Type Description
observationsUrl *
Source:
Returns:
Type
Promise

(async) getUniqueValues(attributeField) → {Array.<string>}

Parameters:
Name Type Description
attributeField string
Source:
Returns:
array of unique values
Type
Array.<string>