169,17 → 169,15 |
} |
|
// si param "ville" |
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); |
} |
else if (this.ville == 'Marseille') { |
this.latLngDeb = new google.maps.LatLng(43.29545, 5.37458); |
this.suiteInitialiserGoogleMap(); |
} |
else if (this.ville == 'Montpellier') { |
this.latLngDeb = new google.maps.LatLng(43.61077, 3.87672); |
this.suiteInitialiserGoogleMap(); |
} |
|
|
} |
|
|
216,17 → 214,18 |
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 |
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 == "") { |
/* |
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(); |
lthis.tenterGeolocalisation(); |
} |
} |
}); |
}); |
} |
*/ |
|
// Création du Geocoder |
this.geocoder = new google.maps.Geocoder(); |