Class BaseLayer
Base class for layer.
Defined in: BaseLayer.js.
Constructor Attributes | Constructor Name and Description |
---|---|
BaseLayer(options)
|
Method Attributes | Method Name and Description |
---|---|
opacity(arg)
Get/Set the opacity of the layer
|
|
visible(arg)
Get/Set the layer visible
|
Class Detail
BaseLayer(options)
- Parameters:
- options
- Configuration properties for a BaseLayer:
- name : the layer name
- description : its description
- attribution : its attribution
- icon : an icon to represent the layer
- visible : a boolean flag to set the layer visible, default is true
- opacity : an oapcity value, default is 1.0
Method Detail
opacity(arg)
Get/Set the opacity of the layer
- Parameters:
- arg
visible(arg)
Get/Set the layer visible
- Parameters:
- arg