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 |
Methods
applyFilter()
Set on the layer. Uses generic
filter syntax and transforms it internally
getBounds() → {object}
Get the bounding box as an object
Returns:
{ min: {x, y}, max: {x, y}, crs: "CRS:84" }
- Type
- object
getColorScale()
Get the active colorscale for the layer
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 |
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 |
getFeatureInfo() → {Promise}
Get Info of the last clicked features
Returns:
feature info
- Type
- Promise
setColorScale(colorScale)
Set the colorscale for the layer
Parameters:
Name | Type | Description |
---|---|---|
colorScale |
setOpacity(opacity)
Set the transparency between 0 and 1
Parameters:
Name | Type | Description |
---|---|---|
opacity |
number |