Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 2905 Rev 2907
Line 167... Line 167...
167
		});
167
		});
Line 168... Line 168...
168
		
168
		
Line 169... Line 169...
169
	}
169
	}
-
 
170
	
170
	
171
	// si param "ville"
171
	// si param "ville"
172
	else {
172
	else if (this.ville == 'Marseille') {
-
 
173
		this.latLngDeb = new google.maps.LatLng(43.29545, 5.37458);
173
		if (this.ville == 'Marseille') {
174
		this.suiteInitialiserGoogleMap();
174
			this.latLngDeb = new google.maps.LatLng(43.29545, 5.37458);
175
	} 
175
		} 
-
 
176
		if (this.ville == 'Montpellier') {
176
	else if (this.ville == 'Montpellier') {
177
			this.latLngDeb = new google.maps.LatLng(43.61077, 3.87672);
177
		this.latLngDeb = new google.maps.LatLng(43.61077, 3.87672);
178
		}
Line -... Line 179...
-
 
179
		this.suiteInitialiserGoogleMap();
178
		this.suiteInitialiserGoogleMap();
180
	}
Line 179... Line 181...
179
	}
181
	
180
	
182
	
Line 212... Line 214...
212
 
214
 
213
	// Ajout de l'évènment sur click dans Carte
215
	// Ajout de l'évènment sur click dans Carte
Line 214... Line 216...
214
	google.maps.event.addListener(this.map, 'click', this.surClickDansCarte.bind(this));
216
	google.maps.event.addListener(this.map, 'click', this.surClickDansCarte.bind(this));
215
 
-
 
216
	// Lorsque la carte est chargée, on vérifie si on peut précharger des données
217
 
217
	/*
218
	// Lorsque la carte est chargée, on vérifie si on peut précharger des données
218
	if (this.ville != Paris) {
219
	var lthis = this;
219
		google.maps.event.addListenerOnce(this.map, 'idle', function(){
220
	google.maps.event.addListenerOnce(this.map, 'idle', function(){
220
			// Initialisation du marker de début de rue
221
		// Initialisation du marker de début de rue
221
			if (!lthis.obsId) {
222
		if (!lthis.obsId) {
-
 
223
			// Tentative de geolocalisation si aucune obs à précharger
222
				// Tentative de geolocalisation si aucune obs à précharger
224
			lthis.initialiserMarkerDeb();
223
				lthis.initialiserMarkerDeb();
225
			if (this.zoneGeo == "" && this.ville == "") {
224
				lthis.tenterGeolocalisation();
226
				lthis.tenterGeolocalisation();
225
			}
227
			}
226
		});
-
 
Line 227... Line 228...
227
	}
228
		}
228
	*/
229
	});
229
 
230