Exemplo n.º 1
0
 public static function extractGPS($info)
 {
     if (empty($info['GPSLatitudeRef'])) {
         return false;
     }
     $lon = $info['GPSLongitude'];
     $lat = $info['GPSLatitude'];
     $lonR = $info['GPSLongitudeRef'];
     $latR = $info['GPSLatitudeRef'];
     $posGPS = new GMarker();
     $posGPS->setLatitude($lat[0], $lat[1], $lat[2], $latR);
     $posGPS->setLongitude($lon[0], $lon[1], $lon[2], $lonR);
     return $posGPS;
 }
Exemplo n.º 2
0
 /**
  * @param GMarker $marker Marcador a ser utilizado
  */
 public static function imgMarker($marker, $options = array(), $imgOptions = array())
 {
     $options = array_merge($options, self::$default);
     $params = http_build_query(array('markers' => $marker->str()) + $options);
     return CHtml::image(self::$url . '?' . $params, '', $imgOptions);
 }