You are here

public function Map::setTarget in Openlayers 7.3

Set the target element to render this map into.

Parameters

string $target: The html ID of the element to render the map into.

Return value

MapInterface The map.

Overrides MapInterface::setTarget

File

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

Class

Map
Class Map.

Namespace

Drupal\openlayers\Types

Code

public function setTarget($target) {
  return $this
    ->setOption('target', $target);
}