Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 2711 Rev 2713
Line 308... Line 308...
308
	this.latLng = new google.maps.LatLng(latitude, longitude);
308
	this.latLng = new google.maps.LatLng(latitude, longitude);
309
	this.deplacerMarker(this.latLng);
309
	this.deplacerMarker(this.latLng);
310
};
310
};
Line 311... Line 311...
311
 
311
 
-
 
312
WidgetSaisie.prototype.initialiserGoogleMap = function() {
312
WidgetSaisie.prototype.initialiserGoogleMap = function() {
313
	var lthis = this;
313
	var latLng,
314
	var latLng,
314
		zoomDefaut;
315
		zoomDefaut;
315
	// Carte @TODO mettre ça dans la config
316
	// Carte @TODO mettre ça dans la config
316
	if(this.nomSciReferentiel == 'bdtre') {
317
	if(this.nomSciReferentiel == 'bdtre') {
Line 375... Line 376...
375
	// Tentative de geocalisation
376
	// Tentative de geocalisation
376
	if (navigator.geolocation) {
377
	if (navigator.geolocation) {
377
		navigator.geolocation.getCurrentPosition(function(position) {
378
		navigator.geolocation.getCurrentPosition(function(position) {
378
			var latitude = position.coords.latitude;
379
			var latitude = position.coords.latitude;
379
			var longitude = position.coords.longitude;
380
			var longitude = position.coords.longitude;
380
			this.latLng = new google.maps.LatLng(latitude, longitude);
381
			lthis.latLng = new google.maps.LatLng(latitude, longitude);
381
			this.deplacerMarker(this.latLng);
382
			lthis.deplacerMarker(this.latLng);
382
		});
383
		});
383
	}
384
	}
Line 384... Line 385...
384
 
385
 
385
	// intéraction carte
386
	// intéraction carte