Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 2323 Rev 2350
Line 365... Line 365...
365
			ctaLayer.setMap(map);
365
			ctaLayer.setMap(map);
366
		}
366
		}
367
	}
367
	}
368
}
368
}
Line 369... Line 369...
369
 
369
 
370
var listener = null,
370
var listener = null, // pourquoi on le conserve, et on met 3 trucs différents dedans ?
Line 371... Line 371...
371
	timer = null;
371
	timer = null;
372
 
372
 
373
function attribuerListenerCarte() {
373
function attribuerListenerCarte() {
374
	listener = google.maps.event.addListener(map, 'bounds_changed', function(){
374
	listener = google.maps.event.addListener(map, 'bounds_changed', function() {
375
		programmerRafraichissementCarte();
375
		programmerRafraichissementCarte();
376
	});
376
	});
377
	listener = google.maps.event.addListener(map, 'zoom_changed', function(){
377
	listener = google.maps.event.addListener(map, 'zoom_changed', function() {
-
 
378
		programmerRafraichissementCarte();
-
 
379
	});
-
 
380
	listener = google.maps.event.addListener(map, 'click', function() {
-
 
381
		if (infoBulleOuverte) {
-
 
382
			infoBulle.close();
-
 
383
			surFermetureInfoBulle();
378
		programmerRafraichissementCarte();
384
		}
Line 379... Line 385...
379
	});
385
	});
380
}
386
}
381
 
387
 
Line 437... Line 443...
437
	selecteur.css('left',left);
443
	selecteur.css('left',left);
438
	selecteur.css('top',top);
444
	selecteur.css('top',top);
439
}
445
}
Line 440... Line 446...
440
 
446
 
441
function afficherMessageChargementPoints() {
447
function afficherMessageChargementPoints() {
442
	centrerDansLaPage($('#zone-chargement-point'));
448
	//centrerDansLaPage($('#zone-chargement-point'));
443
	$('#zone-chargement-point').css('display','block');
449
	$('#zone-chargement-point').css('display','block');
Line 444... Line 450...
444
}
450
}
445
 
451
 
Line 693... Line 699...
693
			filtresGardes = new Array()
699
			filtresGardes = new Array()
694
			idObs = obs.observations[0].idObs;
700
			idObs = obs.observations[0].idObs;
695
		filtre = '';
701
		filtre = '';
696
		for (i in filtreTableau) {
702
		for (i in filtreTableau) {
697
			if (filtreTableau[i] != undefined && filtreTableau[i] != '' && decodeURIComponent(filtreTableau[i]) != '*') {
703
			if (filtreTableau[i] != undefined && filtreTableau[i] != '' && decodeURIComponent(filtreTableau[i]) != '*') {
698
				console.log(i + '  ' + filtreTableau[i]);
-
 
699
				filtresGardes.push(i + '=' + filtreTableau[i]);
704
				filtresGardes.push(i + '=' + filtreTableau[i]);
700
			}
705
			}
701
		}
706
		}
702
		filtresGardes.push('id-obs=' + idObs);
707
		filtresGardes.push('id-obs=' + idObs);
703
		if (filtresGardes.length > 0) {
708
		if (filtresGardes.length > 0) {
Line 796... Line 801...
796
	obsStation = obsStation.concat(observations.observations);
801
	obsStation = obsStation.concat(observations.observations);
797
	if (depart == 0) {
802
	if (depart == 0) {
798
		actualiserInfosStation(observations);
803
		actualiserInfosStation(observations);
799
		creerTitreInfoBulle();
804
		creerTitreInfoBulle();
800
		surClicPagePagination(0, null);
805
		surClicPagePagination(0, null);
801
		console.log(observations);
-
 
802
		mettreAJourUrlSaisie(observations);
806
		mettreAJourUrlSaisie(observations);
803
	}
807
	}
Line 804... Line 808...
804
	
808
	
805
	afficherPagination();
809
	afficherPagination();
Line 1257... Line 1261...
1257
}
1261
}
Line 1258... Line 1262...
1258
 
1262
 
1259
var largeurPanneauLateralFerme = null;
1263
var largeurPanneauLateralFerme = null;
1260
function afficherPanneauLateral() {
1264
function afficherPanneauLateral() {
1261
	// fixer la hauteur
1265
	// fixer la hauteur
1262
	$('#panneau-lateral').height($(window).height() - $('#panneau-lateral').offset().top);
1266
	$('#panneau-lateral').height($(window).height() - $('#panneau-lateral').offset().top - 30);
1263
	largeurPanneauLateralFerme = $('#panneau-lateral').width();
1267
	largeurPanneauLateralFerme = $('#panneau-lateral').width();
1264
	$('#panneau-lateral').width(300);
1268
	$('#panneau-lateral').width(300);
1265
	$('#pl-contenu').css('display', 'block');
1269
	$('#pl-contenu').css('display', 'block');
1266
	$('#pl-ouverture').css('display', 'none');
1270
	$('#pl-ouverture').css('display', 'none');