euromark 12 years ago
parent
commit
c9f23e1978
1 changed files with 10 additions and 7 deletions
  1. 10 7
      View/Helper/GoogleMapV3Helper.php

+ 10 - 7
View/Helper/GoogleMapV3Helper.php

@@ -291,7 +291,9 @@ class GoogleMapV3Helper extends AppHelper {
 		return $url;
 	}
 
-	//deprecated
+	/*
+	 * @deprecated
+	 */
 	public function gearsUrl() {
 		$this->_gearsIncluded = true;
 		$url = $this->_protocol() . 'code.google.com/apis/gears/gears_init.js';
@@ -1645,12 +1647,13 @@ function Fluster2ProjectionOverlay(map) {google.maps.OverlayView.call(this);this
 	/**
 	 * Calculates Distance between two points array('lat'=>x,'lng'=>y)
 	 * DB:
-		'6371.04 * ACOS( COS( PI()/2 - RADIANS(90 - Retailer.lat)) * ' .
-						'COS( PI()/2 - RADIANS(90 - ' . $data['Location']['lat'] .')) * ' .
-						'COS( RADIANS(Retailer.lng) - RADIANS(' . $data['Location']['lng'] .')) + ' .
-						'SIN( PI()/2 - RADIANS(90 - Retailer.lat)) * ' .
-						'SIN( PI()/2 - RADIANS(90 - ' . $data['Location']['lat'] . '))) ' .
-		'AS distance'
+	 * '6371.04 * ACOS( COS( PI()/2 - RADIANS(90 - Retailer.lat)) * ' .
+	 *				'COS( PI()/2 - RADIANS(90 - ' . $data['Location']['lat'] .')) * ' .
+	 *				'COS( RADIANS(Retailer.lng) - RADIANS(' . $data['Location']['lng'] .')) + ' .
+	 *				'SIN( PI()/2 - RADIANS(90 - Retailer.lat)) * ' .
+	 *				'SIN( PI()/2 - RADIANS(90 - ' . $data['Location']['lat'] . '))) ' .
+	 * 'AS distance'
+	 *
 	 * @param array pointX
 	 * @param array pointY
 	 * @return integer distance: in km