You are here

public function Layer::getOpacity in Openlayers 7.3

Return the opacity of the layer (between 0 and 1).

Return value

float The opacity of the layer.

Overrides LayerInterface::getOpacity

File

src/Types/Layer.php, line 96
Class Layer.

Class

Layer
Class Layer.

Namespace

Drupal\openlayers\Types

Code

public function getOpacity() {
  return $this
    ->getOption('opacity');
}