summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <cb15g11@soton.ac.uk>2014-11-29 20:07:41 +0000
committerChristopher Baines <cb15g11@soton.ac.uk>2014-11-29 20:07:41 +0000
commit85a2dbfe03a929fff35b7c727906930922c6510c (patch)
tree70ae611c2e3025ae33b7df4426ac22ec62bb2c09
parentbc49c072e132fc519af3032cfb8290a50659454a (diff)
downloadleaflet-soton-85a2dbfe03a929fff35b7c727906930922c6510c.tar
leaflet-soton-85a2dbfe03a929fff35b7c727906930922c6510c.tar.gz
Fix calls to templating functions
-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 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(); });