Browse Source

Missing coordinate

Aubort Jean-Baptiste 6 years ago
parent
commit
8880dbcb2e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      site/script/main.js

+ 1 - 1
site/script/main.js

@@ -140,7 +140,7 @@ function createMenu(){
         a.attr({'href': '#'+k})
         a.click(function(){
             populateData(k, v);
-            map.setCenter(getPosition(v), 13);
+            map.setCenter(getPosition(v.coordinate), 13);
         });
         a.text(k);
         var li = $('<li>');