diff options
author | Christopher Baines <cb15g11@soton.ac.uk> | 2014-11-29 20:07:41 +0000 |
---|---|---|
committer | Christopher Baines <cb15g11@soton.ac.uk> | 2014-11-29 20:07:41 +0000 |
commit | 85a2dbfe03a929fff35b7c727906930922c6510c (patch) | |
tree | 70ae611c2e3025ae33b7df4426ac22ec62bb2c09 | |
parent | bc49c072e132fc519af3032cfb8290a50659454a (diff) | |
download | leaflet-soton-85a2dbfe03a929fff35b7c727906930922c6510c.tar leaflet-soton-85a2dbfe03a929fff35b7c727906930922c6510c.tar.gz |
Fix calls to templating functions
-rw-r--r-- | src/leaflet-soton.js | 4 |
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(); }); |