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); |
}); |
} |
}; |