Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 2906 → Rev 2907

/trunk/widget/modules/saisie/squelettes/sauvages/js/WidgetSaisieSauvages.js
169,15 → 169,17
}
// si param "ville"
else if (this.ville == 'Marseille') {
this.latLngDeb = new google.maps.LatLng(43.29545, 5.37458);
else {
if (this.ville == 'Marseille') {
this.latLngDeb = new google.maps.LatLng(43.29545, 5.37458);
}
if (this.ville == 'Montpellier') {
this.latLngDeb = new google.maps.LatLng(43.61077, 3.87672);
}
this.suiteInitialiserGoogleMap();
}
else if (this.ville == 'Montpellier') {
this.latLngDeb = new google.maps.LatLng(43.61077, 3.87672);
this.suiteInitialiserGoogleMap();
}
}
 
 
214,18 → 216,17
google.maps.event.addListener(this.map, 'click', this.surClickDansCarte.bind(this));
 
// Lorsque la carte est chargée, on vérifie si on peut précharger des données
/*
if (this.ville != Paris) {
google.maps.event.addListenerOnce(this.map, 'idle', function(){
// Initialisation du marker de début de rue
if (!lthis.obsId) {
// Tentative de geolocalisation si aucune obs à précharger
lthis.initialiserMarkerDeb();
var lthis = this;
google.maps.event.addListenerOnce(this.map, 'idle', function(){
// Initialisation du marker de début de rue
if (!lthis.obsId) {
// Tentative de geolocalisation si aucune obs à précharger
lthis.initialiserMarkerDeb();
if (this.zoneGeo == "" && this.ville == "") {
lthis.tenterGeolocalisation();
}
});
}
*/
}
});
 
// Création du Geocoder
this.geocoder = new google.maps.Geocoder();