You are here

public function MapInterface::addControl in Openlayers 7.3

Add a control to the map.

Parameters

ControlInterface $control: The control object to add.

Return value

MapInterface The parent map.

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

File

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

Class

MapInterface
Interface MapInterface.

Namespace

Drupal\openlayers\Types

Code

public function addControl(ControlInterface $control);