public function MapInterface::addLayer in Openlayers 7.3
Add a layer to the map.
Parameters
LayerInterface $layer: The layer object to add.
Return value
MapInterface The parent map.
1 method overrides MapInterface::addLayer()
- Map::addLayer in src/
Types/ Map.php
File
- src/
Types/ MapInterface.php, line 30 - Interface MapInterface.
Class
- MapInterface
- Interface MapInterface.
Namespace
Drupal\openlayers\TypesCode
public function addLayer(LayerInterface $layer);