new CSS(options)
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
Properties
|
Extends
- ol.Object
Methods
-
addToLayer(layer)
-
Add CSS filter to the layer
Parameters:
Name Type Description layer
ol.layer.Base -
removeFromLayer(layer)
-
Remove CSS filter from the layer
Parameters:
Name Type Description layer
ol.layer.Base -
setBlend(blend)
-
Modify blend mode
Parameters:
Name Type Description blend
string mix-blend-mode to apply (as CSS property)
-
setDisplay(display)
-
Modify layer visibility (but keep it in the layer list)
Parameters:
Name Type Description display
bolean -
setFilter(filter)
-
Modify filter mode
Parameters:
Name Type Description filter
string filter to apply (as CSS property)