Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 2709 Rev 2715
Line 353... Line 353...
353
	this.map.setZoom(16);
353
	this.map.setZoom(16);
354
	arreter(event);
354
	arreter(event);
355
};
355
};
Line 356... Line 356...
356
 
356
 
-
 
357
WidgetSaisieSauvages.prototype.tenterGeolocalisation = function() {
357
WidgetSaisieSauvages.prototype.tenterGeolocalisation = function() {
358
	var lthis = this;
358
	if (navigator.geolocation) {
359
	if (navigator.geolocation) {
359
		navigator.geolocation.getCurrentPosition(function(position) {
360
		navigator.geolocation.getCurrentPosition(function(position) {
360
			var latitude = position.coords.latitude,
361
			var latitude = position.coords.latitude,
361
				longitude = position.coords.longitude,
362
				longitude = position.coords.longitude,
362
				nouvellePosition = new google.maps.LatLng(latitude, longitude);
363
				nouvellePosition = new google.maps.LatLng(latitude, longitude);
363
			this.initialiserMarkerDeb();
364
			lthis.initialiserMarkerDeb();
364
			this.deplacerMarkerDeb(nouvellePosition);
365
			lthis.deplacerMarkerDeb(nouvellePosition);
365
			this.map.setZoom(16);
366
			lthis.map.setZoom(16);
366
		});
367
		});
367
	}
368
	}
Line 368... Line 369...
368
};
369
};