Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 2714 → Rev 2715

/trunk/widget/modules/saisie/squelettes/sauvages/js/WidgetSaisieSauvages.js
355,14 → 355,15
};
 
WidgetSaisieSauvages.prototype.tenterGeolocalisation = function() {
var lthis = this;
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(function(position) {
var latitude = position.coords.latitude,
longitude = position.coords.longitude,
nouvellePosition = new google.maps.LatLng(latitude, longitude);
this.initialiserMarkerDeb();
this.deplacerMarkerDeb(nouvellePosition);
this.map.setZoom(16);
lthis.initialiserMarkerDeb();
lthis.deplacerMarkerDeb(nouvellePosition);
lthis.map.setZoom(16);
});
}
};
/trunk/widget/modules/saisie/squelettes/defaut/js/WidgetSaisie.js
309,7 → 309,12
this.deplacerMarker(this.latLng);
};
 
WidgetSaisie.prototype.initialiserGoogleMap = function() {
WidgetSaisie.prototype.initialiserGoogleMap = function(localisationNavigateur) {
// par défaut on tente de localiser le navigateur (avec son sextant)
if (localisationNavigateur === undefined) {
localisationNavigateur = true;
}
 
var lthis = this;
var latLng,
zoomDefaut;
373,8 → 378,8
 
this.initialiserMarker(latLng);
 
// Tentative de geocalisation
if (navigator.geolocation) {
// Tentative de geocalisation depuis le navigateur
if (localisationNavigateur && navigator.geolocation) {
navigator.geolocation.getCurrentPosition(function(position) {
var latitude = position.coords.latitude;
var longitude = position.coords.longitude;
868,7 → 873,7
this.nomSciReferentiel = $('#referentiel').val();
$('#taxon').val('');
this.initialiserAutocompleteCommune();
this.initialiserGoogleMap();
this.initialiserGoogleMap(false);
};
 
WidgetSaisie.prototype.surChangementNbreObs = function() {