Browse Source

Merge remote-tracking branch 'origin/master'

master
n0m1s 10 years ago
parent
commit
5cfd50d797
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      event.php

+ 2
- 2
event.php View File

@ -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 {


Loading…
Cancel
Save