Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 981 Rev 982
Line 205... Line 205...
205
		if (! $this->etreNull($this->parametres['ne']) && ! $this->etreNull($this->parametres['sw'])) {
205
		if (! $this->etreNull($this->parametres['ne']) && ! $this->etreNull($this->parametres['sw'])) {
206
			$ne = $this->decomposerLatLng($this->parametres['ne']);
206
			$ne = $this->decomposerLatLng($this->parametres['ne']);
207
			$sw = $this->decomposerLatLng($this->parametres['sw']);
207
			$sw = $this->decomposerLatLng($this->parametres['sw']);
208
			$marqueurs['points'] = CartoGroupage::creerGroupesQuadtree($emplacements, $ne['lat'], $ne['lng'], $sw['lat'], $sw['lng'], $zoom);
208
			$marqueurs['points'] = CartoGroupage::creerGroupesQuadtree($emplacements, $ne['lat'], $ne['lng'], $sw['lat'], $sw['lng'], $zoom);
Line -... Line 209...
-
 
209
			
-
 
210
			// laisser la classe cartoGroupage compter les élements simplifie le comptage 
209
			
211
			// et permet de ne pas reparser le tableau pour compter les différents éléments
Line 210... Line 212...
210
			$nb_elements = CartoGroupage::getNbElements();
212
			$nb_elements = CartoGroupage::getNbElements();
211
			
213
			
212
			$marqueurs['stats']['stations'] = $nb_elements['stations'];
214
			$marqueurs['stats']['stations'] = $nb_elements['stations'];