|
|
@ -81,9 +81,9 @@ |
|
|
var geocoder = new google.maps.Geocoder(); |
|
|
var geocoder = new google.maps.Geocoder(); |
|
|
geocoder.geocode({'address': '<?php echo $event["localisation"]; ?>'}, function(results, status) { |
|
|
geocoder.geocode({'address': '<?php echo $event["localisation"]; ?>'}, function(results, status) { |
|
|
if (status === google.maps.GeocoderStatus.OK) { |
|
|
if (status === google.maps.GeocoderStatus.OK) { |
|
|
resultsMap.setCenter(results[0].geometry.location); |
|
|
|
|
|
|
|
|
map.setCenter(results[0].geometry.location); |
|
|
var marker = new google.maps.Marker({ |
|
|
var marker = new google.maps.Marker({ |
|
|
map: resultsMap, |
|
|
|
|
|
|
|
|
map: map, |
|
|
position: results[0].geometry.location |
|
|
position: results[0].geometry.location |
|
|
}); |
|
|
}); |
|
|
} else { |
|
|
} else { |
|
|
|