Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 1091 Rev 1107
Line 139... Line 139...
139
 
139
 
140
function chargerLimitesCommunales() {
140
function chargerLimitesCommunales() {
141
	if (urlsLimitesCommunales != null) {
141
	if (urlsLimitesCommunales != null) {
142
		for (urlId in urlsLimitesCommunales) { 
142
		for (urlId in urlsLimitesCommunales) { 
143
			var url = urlsLimitesCommunales[urlId];
143
			var url = urlsLimitesCommunales[urlId];
144
			ctaLayer = new google.maps.KmlLayer(url, {preserveViewport: false});
144
			ctaLayer = new google.maps.KmlLayer(url, {preserveViewport: true});
145
			ctaLayer.setMap(map);
145
			ctaLayer.setMap(map);
146
		}
146
		}
147
	}
147
	}
Line 201... Line 201...
201
 
201
 
202
function cacherMessageChargementPoints() {
202
function cacherMessageChargementPoints() {
203
	$('#zone-chargement-point').css('display','none');
203
	$('#zone-chargement-point').css('display','none');
Line -... Line 204...
-
 
204
}
-
 
205
 
204
}
206
premierChargement = true;
205
 
207
 
206
function rafraichirMarqueurs(data) {
208
function rafraichirMarqueurs(data) {
207
	$.each(marqueurs, function(index, marqueur) {
209
	$.each(marqueurs, function(index, marqueur) {
208
		marqueur.setMap(null);
210
		marqueur.setMap(null);
Line 216... Line 218...
216
		if(station != null) {
218
		if(station != null) {
217
			var nouveauMarqueur = creerMarqueur(station);
219
			var nouveauMarqueur = creerMarqueur(station);
218
			marqueurs.push(nouveauMarqueur);
220
			marqueurs.push(nouveauMarqueur);
219
		}
221
		}
220
	});
222
	});
-
 
223
	
-
 
224
	if(premierChargement) {
-
 
225
		premierChargement = false;
-
 
226
		var bounds = new google.maps.LatLngBounds();
-
 
227
		var latMax = new google.maps.LatLng(data.stats.coordmax.latMax, data.stats.coordmax.lngMax);
-
 
228
		var latMin = new google.maps.LatLng(data.stats.coordmax.latMin, data.stats.coordmax.lngMin);
-
 
229
		bounds.extend(latMax);
-
 
230
		bounds.extend(latMin);
-
 
231
		rendrePointsVisibles(bounds);	
-
 
232
	}
221
}
233
}
Line 222... Line 234...
222
 
234
 
223
function creerMarqueur(station) {
235
function creerMarqueur(station) {
224
	var titre = '';
236
	var titre = '';