8,7 → 8,7 |
this.nbObsTransmises = 0; |
this.map = null; |
this.marker = null; |
this.latLng = null; // position en cours |
this.latLng = null; |
this.geocoder = null; |
this.debug = null; |
this.html5 = null; |
274,8 → 274,8 |
}, |
// Cette partie est executee a la selection d'une adresse |
select: function(event, ui) { |
lthis.latLng = new google.maps.LatLng(ui.item.latitude, ui.item.longitude); |
lthis.deplacerMarker(lthis.latLng); |
var latLng = new google.maps.LatLng(ui.item.latitude, ui.item.longitude); |
lthis.deplacerMarker(latLng); |
} |
}); |
}; |
291,14 → 291,12 |
}; |
|
WidgetSaisie.prototype.surDeplacementMarker = function() { |
this.latLng = this.marker.getPosition(); |
this.trouverCommune(this.latLng); |
this.trouverCommune(this.marker.getPosition()); |
this.mettreAJourMarkerPosition(this.marker.getPosition()); |
}; |
|
WidgetSaisie.prototype.surClickDansCarte = function(event) { |
this.latLng = event.latLng; |
this.deplacerMarker(this.latLng); |
this.deplacerMarker(event.latLng); |
}; |
|
/** |
337,7 → 335,7 |
latLng = new google.maps.LatLng(8.75624, 1.80176);// Afrique de l'Ouest et du Centre |
zoomDefaut = 4; |
} else { |
latLng = new google.maps.LatLng(46.30871, 2.54395);// Centre de la France - @WARNING Prémilhat !! :) |
latLng = new google.maps.LatLng(46.30871, 2.54395);// Centre de la France |
zoomDefaut = 5; |
} |
|
431,9 → 429,6 |
}; |
|
WidgetSaisie.prototype.trouverCommune = function(pos) { |
if (this.latLng == null) { // tentative de protection contre le démon de Prémilhat |
return; |
} |
var lthis = this; |
$(function() { |
|