Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 1433 → Rev 1434

/trunk/widget/modules/cartopoint/CartoPoint.php
41,6 → 41,7
private $num_taxon = null;
private $station = null;
private $format = null;// Format des obs pour les stations (tableau/liste)
private $photos_seulement = null; // Seulement les obs avec photos ou bien toutes
/**
* Méthode appelée par défaut pour charger ce widget.
78,6 → 79,7
$this->commentaire = (isset($commentaire) ? $commentaire : null);
$this->station = (isset($station) ? $station : null);
$this->format = (isset($format) ? $format : null);
$this->photos_seulement = (isset($photos_seulement) ? $photos_seulement : null);
$this->start = (isset($start) ? $start : null);
$this->limit = (isset($limit) ? $limit : null);
}
103,6 → 105,7
$widget['donnees']['date'] = $this->date;
$widget['donnees']['taxon'] = $this->taxon;
$widget['donnees']['commentaire'] = $this->commentaire;
$widget['donnees']['photos_seulement'] = $this->photos_seulement;
$widget['donnees']['url_limites_communales'] = $this->obtenirUrlsLimitesCommunales();
$widget['donnees']['communeImageUrl'] = $this->config['carto']['communeImageUrl'];
$widget['donnees']['pointImageUrl'] = $this->config['carto']['pointImageUrl'];
/trunk/widget/modules/cartopoint/squelettes/carte_defaut.tpl.html
49,7 → 49,10
'&date=<?=$date?>'+
'&dept=<?=$dept?>'+
'&commune=<?=rawurlencode($commune)?>'+
'&commentaire=<?=rawurlencode($commentaire)?>';
'&commentaire=<?=rawurlencode($commentaire)?>'+
'&photos_seulement=<?=rawurlencode($photos_seulement)?>';
var photos_seulement = '<?= ($photos_seulement != null) ? $photos_seulement : false; ?>';
var stationsUrl = '<?=$url_cel_carto?>/tout'+'?'+
'num_taxon='+nt+
filtreCommun;
190,7 → 193,7
<td>
<span class="nom-sci">&nbsp;
{{if nn != 0}}
<a href="http://www.tela-botanica.org/nn${nn}"
<a href="http://www.tela-botanica.org/bdtfx-nn-${nn}"
onclick="ouvrirNouvelleFenetre(this, event)">
${nomSci}
</a>
/trunk/widget/modules/cartopoint/squelettes/scripts/carto.js
115,6 → 115,10
var titre = obsNbreFormate+' observation';
titre += (obsNbre > 1) ? 's' : '' ;
 
if(photos_seulement == 1) {
titre += ' avec photos ';
}
titre += ' sur '+(stationNbre+ communeNbre)+' station';
titre += (stationNbre > 1) ? 's' : '' ;
205,8 → 209,14
timer = window.setTimeout(function() {
if(map.getBounds() != undefined) {
var zoom = map.getZoom();
var NELatLng = (map.getBounds().getNorthEast().lat())+'|'+(map.getBounds().getNorthEast().lng());
var SWLatLng = (map.getBounds().getSouthWest().lat())+'|'+(map.getBounds().getSouthWest().lng());
var lngNE = map.getBounds().getNorthEast().lng();
var lngSW = map.getBounds().getSouthWest().lng()
if(map.getBounds().getNorthEast().lng() < map.getBounds().getSouthWest().lng()) {
lngNE = 176;
lngSW = -156;
}
var NELatLng = (map.getBounds().getNorthEast().lat())+'|'+(lngNE);
var SWLatLng = (map.getBounds().getSouthWest().lat())+'|'+(lngSW);
chargerMarqueurs(zoom, NELatLng, SWLatLng);
} else {
programmerRafraichissementCarte();
286,7 → 296,7
titre = station.nom;
}
}
//var titre = station['nbreMarqueur'];
var icone = attribuerImageMarqueur(station['id'], station['nbreMarqueur']);
var latLng = new google.maps.LatLng(station['lat'], station['lng']);
var marqueur = new google.maps.Marker({
304,7 → 314,6
function rendrePointsVisibles(bounds) {
map.setCenter(bounds.getCenter());
map.fitBounds(bounds);
map.panToBounds(bounds);
}
 
function attribuerImageMarqueur(id, nbreMarqueur) {
412,14 → 421,6
map.panTo(pointClique.position);
}
 
function executerMarkerClusterer(points, bounds) {
if (markerClusterer) {
markerClusterer.clearMarkers();
}
markerClusterer = new MarkerClusterer(map, points, {gridSize: 50, maxZoom: 18});
map.fitBounds(bounds);
}
 
/*+--------------------------------------------------------------------------------------------------------+*/
// INFO BULLE
var infoBulleOuverte = false;
554,7 → 555,7
function actualiserPagineur() {
pagineur.stationId = pointClique.stationInfos.id;
pagineur.total = pointClique.stationInfos.obsNbre;
if (pagineur.total > 4) {
if (pagineur.total > 4 && photos_seulement != 1) {
pagineur.format = 'tableau';
} else {
pagineur.format = 'liste';