Ejemplo n.º 1
0
 /**
  * Template tag for the current map script.
  *
  * @since 1.4
  *
  * @param string $element_id The DOM id of the map container.
  * @return string The script tag to generate the map for this request.
  */
 public static function map_script($element_id)
 {
     return '<script type="text/javascript">' . "\n" . 'GeoMashup.createMap(document.getElementById("' . $element_id . '"), { ' . GeoMashup::implode_assoc(':', ',', self::$map_data) . ' });' . "\n" . '</script>';
 }