You are here

public function YaMaps::getCoordinates in Yandex.Maps 8

Returns map coordinates.

Get coordinates with support of old coordinates place.

Return value

string List options 'coords'.

2 calls to YaMaps::getCoordinates()
YaMaps::buildOptionsForm in src/Plugin/views/style/YaMaps.php
Provide a form to edit options for this plugin.
YaMaps::render in src/Plugin/views/style/YaMaps.php
Render the display in this style.

File

src/Plugin/views/style/YaMaps.php, line 597

Class

YaMaps
Allow to display several field items on a yandex map.

Namespace

Drupal\yamaps\Plugin\views\style

Code

public function getCoordinates() {
  if (isset($this->options['coords'])) {
    return $this->options['coords'];
  }
  elseif (isset($this->options['yamaps_center_options']['map_container']['coords'])) {
    return $this->options['yamaps_center_options']['map_container']['coords'];
  }
  else {
    return '';
  }
}