Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 1586 Rev 2170
Line 388... Line 388...
388
	}, 400);
388
	}, 400);
389
}
389
}
Line 390... Line 390...
390
 
390
 
391
var marqueurs = new Array();
391
var marqueurs = new Array();
392
function chargerMarqueurs(zoom, NELatLng, SWLatLng) {
392
function chargerMarqueurs(zoom, NELatLng, SWLatLng) {
393
	cacherMessageAucuneObs()
393
	cacherMessageAucuneObs();
394
	var url = stationsUrl+
394
	var url = stationsUrl+
395
		'&zoom='+zoom+
395
		'&zoom='+zoom+
396
		'&ne='+NELatLng+
396
		'&ne='+NELatLng+
Line 742... Line 742...
742
		var urlObs = observationsUrl+'&start={start}&limit='+limite;
742
		var urlObs = observationsUrl+'&start={start}&limit='+limite;
743
		urlObs = urlObs.replace(/\{stationId\}/g, encodeURIComponent(pointClique.stationInfos.id));
743
		urlObs = urlObs.replace(/\{stationId\}/g, encodeURIComponent(pointClique.stationInfos.id));
744
		if (pointClique.stationInfos.type_emplacement == 'communes') {
744
		if (pointClique.stationInfos.type_emplacement == 'communes') {
745
			urlObs = urlObs.replace(/commune=%2A/g, formaterParametreCommunePourRequete(pointClique.stationInfos.nom));
745
			urlObs = urlObs.replace(/commune=%2A/g, formaterParametreCommunePourRequete(pointClique.stationInfos.nom));
746
		}
746
		}
-
 
747
		// Ajout de la zone geo
-
 
748
		if (pointClique.stationInfos.zonegeo) {
-
 
749
			urlObs += '&zonegeo=' + pointClique.stationInfos.zonegeo;
-
 
750
		}
-
 
751
 
747
		urlObs = urlObs.replace(/\{nt\}/g, nt);
752
		urlObs = urlObs.replace(/\{nt\}/g, nt);
748
		urlObs = urlObs.replace(/\{start\}/g, depart);
753
		urlObs = urlObs.replace(/\{start\}/g, depart);
Line 749... Line 754...
749
		
754
		
750
		$.getJSON(urlObs, function(observations){
755
		$.getJSON(urlObs, function(observations){