public function LayerInterface::setOpacity in Openlayers 7.3
Set the opacity of the layer.
Parameters
float $opacity: The opacity value, allowed values range from 0 to 1.
Return value
LayerInterface The parent layer.
2 methods override LayerInterface::setOpacity()
- Error::setOpacity in src/
Types/ Error.php - Set the opacity of the layer.
- Layer::setOpacity in src/
Types/ Layer.php - Set the opacity of the layer.
File
- src/
Types/ LayerInterface.php, line 60 - Interface LayerInterface.
Class
- LayerInterface
- Interface LayerInterface.
Namespace
Drupal\openlayers\TypesCode
public function setOpacity($opacity);