summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorChristopher Baines <cb15g11@soton.ac.uk>2014-09-17 14:22:20 +0100
committerChristopher Baines <cb15g11@soton.ac.uk>2014-09-17 14:22:20 +0100
commit51840747236ae5b43e05cb3fd9bc3a16e16a20fb (patch)
treeba836fb5cbc6200b399857c138bd865337f23ac9 /examples
parent7ce760afa408e690e862a3bcfdfdefcde3675224 (diff)
downloadleaflet-soton-51840747236ae5b43e05cb3fd9bc3a16e16a20fb.tar
leaflet-soton-51840747236ae5b43e05cb3fd9bc3a16e16a20fb.tar.gz
Fix show and close info
Also modify the full example such that this cannot happen again.
Diffstat (limited to 'examples')
-rw-r--r--examples/full.html14
1 files changed, 8 insertions, 6 deletions
diff --git a/examples/full.html b/examples/full.html
index c59fdea..10037ab 100644
--- a/examples/full.html
+++ b/examples/full.html
@@ -36,12 +36,14 @@
LS.imagePath = '../resources/images/';
LS.dataPath = '../data.json';
- var map = LS.map('map', {
- workstations: true,
- indoor: true
- });
-
- L.control.locate().addTo(map);
+ (function() {
+ var map = LS.map('map', {
+ workstations: true,
+ indoor: true
+ });
+
+ L.control.locate().addTo(map);
+ })();
</script>
</body>
</html>