You are here

public function MapInterface::removeLayer in Openlayers 7.3

Remove a layer from the map.

Parameters

string $layer_id: The machine name (or id) of the layer to remove.

Return value

MapInterface The map.

1 method overrides MapInterface::removeLayer()
Map::removeLayer in src/Types/Map.php

File

src/Types/MapInterface.php, line 74
Interface MapInterface.

Class

MapInterface
Interface MapInterface.

Namespace

Drupal\openlayers\Types

Code

public function removeLayer($layer_id);