Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 1433 → Rev 1434

/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';