You are here

public function LayerInterface::setVisible in Openlayers 7.3

Set the visibility of the layer.

Parameters

bool $visibility: The visibility of the layer, TRUE or FALSE.

Return value

LayerInterface The parent layer.

2 methods override LayerInterface::setVisible()
Error::setVisible in src/Types/Error.php
Set the visibility of the layer.
Layer::setVisible in src/Types/Layer.php
Set the visibility of the layer.

File

src/Types/LayerInterface.php, line 98
Interface LayerInterface.

Class

LayerInterface
Interface LayerInterface.

Namespace

Drupal\openlayers\Types

Code

public function setVisible($visibility);