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; }
/** * @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); }