You are here

public function Map::getSize in Openlayers 7.3

Return the size of the map.

Return value

array $size Return an array with width and height.

Overrides MapInterface::getSize

File

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

Class

Map
Class Map.

Namespace

Drupal\openlayers\Types

Code

public function getSize() {
  return array(
    $this
      ->getOption('width'),
    $this
      ->getOption('height'),
  );
}