summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/leaflet-soton.js10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/leaflet-soton.js b/src/leaflet-soton.js
index b9818bc..e5bb696 100644
--- a/src/leaflet-soton.js
+++ b/src/leaflet-soton.js
@@ -821,15 +821,9 @@ SELECT * WHERE {\
map,
function() { map.closeInfo(); });
- var temp = { _rings: building.geometry.coordinates, _map: this };
+ map.panTo(building.properties.center);
-
- var center = building.geometry.coordinates[0][0];
- center = [center[1], center[0]];
-
- map.panTo(center);
-
- map.showInfo(content, center);
+ map.showInfo(content, building.properties.center);
return;
}