From 85a2dbfe03a929fff35b7c727906930922c6510c Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Sat, 29 Nov 2014 20:07:41 +0000 Subject: Fix calls to templating functions --- 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 5d30926..0948789 100644 --- a/src/leaflet-soton.js +++ b/src/leaflet-soton.js @@ -873,7 +873,7 @@ SELECT * WHERE {\ stopOptions: { onEachFeature: function(feature, layer) { layer.on('click', function(e) { - var content = busStopTemplate(feature.properties); + var content = LS.infoTemplates.busStop(feature.properties); map.showInfo(content, e.latlng); }); @@ -1163,7 +1163,7 @@ SELECT * WHERE {\ var building = buildings[i]; if (building.properties.uri === uri) { - var content = buildingTemplate(building.properties, + var content = LS.infoTemplate.building(building.properties, this.options, map, function() { map.closeInfo(); }); -- cgit v1.2.3