summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
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>