summaryrefslogtreecommitdiff
path: root/examples/buildingsearch.html
diff options
context:
space:
mode:
authorChristopher Baines <cb15g11@soton.ac.uk>2014-08-26 19:36:38 +0100
committerChristopher Baines <cb15g11@soton.ac.uk>2014-08-26 19:36:38 +0100
commit38afe83cf46641c6a9b25a7f0dc18fdcdb562b4c (patch)
treeb779c5380be164c98021e6887556279a8867edbb /examples/buildingsearch.html
parent51814b0ba5ae52a4999291dc1cdf03d43bb1d189 (diff)
downloadleaflet-soton-38afe83cf46641c6a9b25a7f0dc18fdcdb562b4c.tar
leaflet-soton-38afe83cf46641c6a9b25a7f0dc18fdcdb562b4c.tar.gz
Fix building search example
Diffstat (limited to 'examples/buildingsearch.html')
-rw-r--r--examples/buildingsearch.html7
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/buildingsearch.html b/examples/buildingsearch.html
index 5554fce..8bb64b7 100644
--- a/examples/buildingsearch.html
+++ b/examples/buildingsearch.html
@@ -113,11 +113,14 @@ body { height: 100%; margin: 0px; padding: 0px }
<script src="../resources/leaflet/dist/leaflet.js"></script>
<script src="../src/leaflet-soton.js"></script>
+<script src="../resources/leaflet-indoor/leaflet-indoor.js"></script>
<script type="text/javascript">
LS.imagePath = '../resources/images/';
LS.dataPath = '../data.json';
- var map = LS.map('map');
+ var map = LS.map('map', {
+ indoor: true
+ });
LS.on("dataload", function(data) {
var searchBox = document.getElementById("searchBox");
@@ -146,7 +149,7 @@ body { height: 100%; margin: 0px; padding: 0px }
a.href = "#";
a.onclick = function() {
- map.showPopupByURI(building.properties.uri);
+ map.showByURI(building.properties.uri);
};
var label = document.createElement("span");