You are here

public function Map::addLayer in Openlayers 7.3

Return value

MapInterface The Map object.

Overrides MapInterface::addLayer

File

src/Types/Map.php, line 21
Class Map.

Class

Map
Class Map.

Namespace

Drupal\openlayers\Types

Code

public function addLayer(LayerInterface $layer) {
  return $this
    ->addObject($layer);
}