public function yamaps_views_plugin_style_default_map::getCoordinates in Yandex.Maps 7
Returns map coordinates.
Get coordinates with support of old coordinates place.
Return value
string List options 'coords'.
2 calls to yamaps_views_plugin_style_default_map::getCoordinates()
- yamaps_views_plugin_style_default_map::options_form in modules/
yamaps_views/ handlers/ yamaps_views_plugin_style_default_map.inc - Returns Yandex Maps views settings form.
- yamaps_views_plugin_style_default_map::render in modules/
yamaps_views/ handlers/ yamaps_views_plugin_style_default_map.inc - Renders the map.
File
- modules/
yamaps_views/ handlers/ yamaps_views_plugin_style_default_map.inc, line 896 - Class yamaps_views_plugin_style_default_map.
Class
- yamaps_views_plugin_style_default_map
- Class defines Yandex Maps style plugin handler.
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 '';
}
}