/trunk/widget/modules/cartopoint/squelettes/scripts/carto.js |
---|
98,6 → 98,8 |
var plteNbreFormate = taxonsCarte.length.formaterNombre(); |
var communeNbre = stations.stats.communes; |
var communeNbreFormate = stations.stats.communes.formaterNombre(); |
var stationNbre = stations.stats.stations; |
var stationNbreFormate = stations.stats.stations.formaterNombre(); |
var titre = obsNbreFormate+' observation'; |
titre += (obsNbre > 1) ? 's' : '' ; |
115,6 → 117,9 |
titre += ' sur '+communeNbreFormate+' commune'; |
titre += (communeNbre > 1) ? 's' : '' ; |
titre += ' et '+stationNbre+' station'; |
titre += (stationNbre > 1) ? 's' : '' ; |
$('#carte-titre-infos').text(titre); |
} |
} |
/trunk/jrest/lib/CartoGroupage.php |
---|
17,7 → 17,7 |
private static $coefficientReductionPas = null; |
private static $coefficientProfondeurMax = null; |
private static $nbElements = array('stations' => 0,'communes' => 0, 'observations' => 0); |
private static $nbElements = array('stations' => 0,'communes' => 0, 'points' => 0); |
private static $listeNoeudsSelectionnes = array(); |
private static $bornesMax = array('latMin' => null, 'lngMin' => null, 'latMax' => null, 'lngMax' => null); |
private static $id_traites = array(); |
54,7 → 54,7 |
self::$nbElements[$emplacement]++; |
self::$listeNoeudsSelectionnes[] = self::ajouterGroupeOuPoint($noeudSimple); |
} |
self::$nbElements['observations']++; |
self::$nbElements['points']++; |
} |
} |
return self::$listeNoeudsSelectionnes; |
129,7 → 129,7 |
self::ajouterFils($noeud,$cadran,$point); |
self::$nbElements[$emplacement]++; |
} |
self::$nbElements['observations']++; |
self::$nbElements['points']++; |
} |
$profondeur++; |
/trunk/jrest/services/CelWidgetMapPoint.php |
---|
184,14 → 184,14 |
private $nb_obs = 0; |
private function compterObservations($params) { |
$requete = 'SELECT COUNT(*) AS nb '. |
$requete = 'SELECT COUNT(*) as nb '. |
'FROM cel_inventory AS i '. |
' LEFT JOIN locations AS l '. |
' ON (l.name = i.location AND l.code = i.id_location) '. |
"WHERE transmission = '1' ". |
" AND ". |
"(".$this->construireWhereRectangleStationOR()." OR ". |
$this->construireWhereRectangleCommuneOR(). |
" AND (". |
$this->construireWhereRectangleStationOR()." OR ". |
$this->construireWhereRectangleCommuneOR().") ". |
$this->construireWhereDept(). |
$this->construireWhereCommune(). |
$this->construireWhereUtilisateur(). |
1241,4 → 1241,5 |
} |
return $commentaire_infos; |
} |
} |
} |
?> |