Class: MeasurementsLayer

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

Layer for displaying Measurements from a DataFrame Object

Constructor

new MeasurementsLayer(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:

Methods

applyFilter()

Set on the layer. Uses generic filter syntax and transforms it internally
Source:

getBounds() → {object}

Get the bounding box as an object
Source:
Returns:
{ min: {x, y}, max: {x, y}, crs: "CRS:84" }
Type
object

getColorScale()

Get the active colorscale for the layer
Source:

getColumnIndex(dataFrame, names)

helper method for finding a column index containing a certain set of strings
Parameters:
Name Type Description
dataFrame DataFrame to search for columns
names string | Array.<string> single column name or an array of names
Source:

getColumnName(dataFrame, index)

helper method for finding a column name from an index
Parameters:
Name Type Description
dataFrame DataFrame to search for columns
index number
Source:

getFeatureInfo() → {Promise}

Get Info of the last clicked features
Source:
Returns:
feature info
Type
Promise

setColorScale(colorScale)

Set the colorscale for the layer
Parameters:
Name Type Description
colorScale
Source:

setOpacity(opacity)

Set the transparency between 0 and 1
Parameters:
Name Type Description
opacity number
Source: