From 541329d02b32c0ce547d62e5b7b7f42ea9fd2a40 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Wed, 17 Sep 2014 14:36:12 +0100 Subject: Fix problem with missing map --- src/leaflet-soton.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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)) { -- cgit v1.2.3