You are here

public function Layer::setZIndex in Openlayers 7.3

Set Z-index of the layer, which is used to order layers before rendering.

Parameters

int $zindex: The Z-Index. Default is 0.

Return value

LayerInterface The parent layer.

Overrides LayerInterface::setZIndex

File

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

Class

Layer
Class Layer.

Namespace

Drupal\openlayers\Types

Code

public function setZIndex($zindex) {
  return $this
    ->setOption('zIndex', intval($zindex));
}