Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 2714 Rev 2715
Line 307... Line 307...
307
	var longitude = $('#longitude').val();
307
	var longitude = $('#longitude').val();
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(localisationNavigateur) {
-
 
313
	// par défaut on tente de localiser le navigateur (avec son sextant)
-
 
314
	if (localisationNavigateur === undefined) {
-
 
315
		localisationNavigateur = true;
-
 
316
	}
312
WidgetSaisie.prototype.initialiserGoogleMap = function() {
317
 
313
	var lthis = this;
318
	var lthis = this;
314
	var latLng,
319
	var latLng,
315
		zoomDefaut;
320
		zoomDefaut;
316
	// Carte @TODO mettre ça dans la config
321
	// Carte @TODO mettre ça dans la config
Line 371... Line 376...
371
		position: latLng
376
		position: latLng
372
	});
377
	});
Line 373... Line 378...
373
 
378
 
Line 374... Line 379...
374
	this.initialiserMarker(latLng);
379
	this.initialiserMarker(latLng);
375
 
380
 
376
	// Tentative de geocalisation
381
	// Tentative de geocalisation depuis le navigateur
377
	if (navigator.geolocation) {
382
	if (localisationNavigateur && navigator.geolocation) {
378
		navigator.geolocation.getCurrentPosition(function(position) {
383
		navigator.geolocation.getCurrentPosition(function(position) {
379
			var latitude = position.coords.latitude;
384
			var latitude = position.coords.latitude;
380
			var longitude = position.coords.longitude;
385
			var longitude = position.coords.longitude;
Line 866... Line 871...
866
 
871
 
867
WidgetSaisie.prototype.surChangementReferentiel = function() {
872
WidgetSaisie.prototype.surChangementReferentiel = function() {
868
	this.nomSciReferentiel = $('#referentiel').val();
873
	this.nomSciReferentiel = $('#referentiel').val();
869
	$('#taxon').val('');
874
	$('#taxon').val('');
870
	this.initialiserAutocompleteCommune();
875
	this.initialiserAutocompleteCommune();
871
	this.initialiserGoogleMap();
876
	this.initialiserGoogleMap(false);
Line 872... Line 877...
872
};
877
};
873
 
878
 
874
WidgetSaisie.prototype.surChangementNbreObs = function() {
879
WidgetSaisie.prototype.surChangementNbreObs = function() {