summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristopher Baines <cb15g11@soton.ac.uk>2014-09-17 14:36:12 +0100
committerChristopher Baines <cb15g11@soton.ac.uk>2014-09-17 14:36:12 +0100
commit541329d02b32c0ce547d62e5b7b7f42ea9fd2a40 (patch)
tree271648ef13a21963bec3da366f4187686fe99380 /src
parent34c5eadbb6fb846de95e6e453a9e3a8203d21a71 (diff)
downloadleaflet-soton-541329d02b32c0ce547d62e5b7b7f42ea9fd2a40.tar
leaflet-soton-541329d02b32c0ce547d62e5b7b7f42ea9fd2a40.tar.gz
Fix problem with missing map
Diffstat (limited to 'src')
-rw-r--r--src/leaflet-soton.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/leaflet-soton.js b/src/leaflet-soton.js
index d491595..b8f1414 100644
--- a/src/leaflet-soton.js
+++ b/src/leaflet-soton.js
@@ -687,7 +687,7 @@ SELECT * WHERE {\
// When the feature is clicked on
if ("buildingpart" in feature.properties) {
if (feature.properties.buildingpart === "room") {
- content = roomPopupTemplate(feature.properties, options);
+ content = roomPopupTemplate(feature.properties, options, map);
} else if (feature.properties.buildingpart === "verticalpassage") {
content = verticalPassagePopupTemplate(feature.properties);
}
@@ -1003,7 +1003,7 @@ SELECT * WHERE {\
parking: parkingTemplate,
};
- function roomPopupTemplate(properties, options) {
+ function roomPopupTemplate(properties, options, map) {
properties = L.extend({}, properties);
if (!("name" in properties)) {