Subversion Repositories eFlore/Applications.cel

Rev

Rev 1142 | Rev 1148 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1142 Rev 1144
Line 189... Line 189...
189
		if(isset($point['type_emplacement'])) {
189
		if(isset($point['type_emplacement'])) {
190
			return $point['type_emplacement'];
190
			return $point['type_emplacement'];
191
		}
191
		}
Line 192... Line 192...
192
		
192
		
-
 
193
		if(self::coordonneesSontNulles($point) || self::estSensible($point)) {
193
		if(self::coordonneesSontNulles($point) || self::estSensible($point)) {
194
			$point_allege = array();
194
				$point['id'] = self::MARQUEUR_COMMUNE.':'.$point['wgs84_latitude'].'|'.$point['wgs84_longitude'];
195
			$point_allege['id'] = self::MARQUEUR_COMMUNE.':'.$point['wgs84_latitude'].'|'.$point['wgs84_longitude'];
195
				$point['type_emplacement'] = 'communes';
196
			$point_allege['type_emplacement'] = 'communes';
196
				$point['lat'] = (float)$point['wgs84_latitude'];
197
			$point_allege['lat'] = (float)$point['wgs84_latitude'];
-
 
198
			$point_allege['lng'] = (float)$point['wgs84_longitude'];
-
 
199
			
197
				$point['lng'] = (float)$point['wgs84_longitude'];
200
			$point = $point_allege;
198
		} else {
201
		} else {
199
			$point_allege = array();
202
			$point_allege = array();
200
			$point_allege['id'] = self::MARQUEUR_STATION.':'.$point['coord_x'].'|'.$point['coord_y'];
203
			$point_allege['id'] = self::MARQUEUR_STATION.':'.$point['coord_x'].'|'.$point['coord_y'];
201
			$point_allege['type_emplacement'] = 'stations';
204
			$point_allege['type_emplacement'] = 'stations';