You are here

function _gmap_str2coord in GMap Module 7.2

Same name and namespace in other branches
  1. 5 gmap_parse_macro.inc \_gmap_str2coord()
  2. 6.2 gmap_parse_macro.inc \_gmap_str2coord()
  3. 6 gmap_parse_macro.inc \_gmap_str2coord()
  4. 7 gmap_parse_macro.inc \_gmap_str2coord()

Parse "x.xxxxx , y.yyyyyy (+ x.xxxxx, y.yyyyy ...)" into an array of points.

@internal

Deprecated

use GmapMacroToolbox::getInstance()->setStyle($style)->getParsedStyles()

1 call to _gmap_str2coord()
GmapMacroToolboxTestCase::testGmapMacroToolbox in tests/oopmigration.test

File

./gmap_parse_macro.inc, line 32
GMap macro parsing routines.

Code

function _gmap_str2coord($str) {
  include_once drupal_get_path('module', 'gmap') . '/lib/Drupal/gmap/GmapMacroToolbox.php';
  return GmapMacroToolbox::getInstance()
    ->setCoordString($str)
    ->getCoord();
}