new Layer()
Constructor
- Source:
- format/layer/Layer.js
Extends
Methods
-
read(options)
-
Abstract class for reading layer
Parameters:
Name Type Description optionsObject JSON object
- Overrides:
- Source:
- format/layer/Layer.js
Returns:
- Type
- Layer | boolean
-
readOptions(layer, options)
-
Set the layers options (visibility, opacity, etc.)
Parameters:
Name Type Description layerol.layer ol layer
optionsObject Properties
Name Type Description nameString name of the layer
titleString title of the layer
opacitybool opacity of the layer, default 1
visibilitybool visibility of the layer
copyrightString layer copyright
descriptionString layer description
clusterboolean maxZoomClusternumber popupHoverSelectvboolean - Source:
- format/layer/Layer.js
-
write()
-
Abstract class for reading layer
- Overrides:
- Source:
- format/layer/Layer.js
Returns:
- Type
- Layer | boolean
-
writeOptions(layer, options)
-
Get the layers options (visibility, opacity, etc.)
Parameters:
Name Type Description layerol.layer ol layer
optionsObject a list of options to extend. The list is extended in place.
- Source:
- format/layer/Layer.js
Returns:
the options
- Type
- Object