summaryrefslogtreecommitdiff
path: root/examples/vendingmachines.html
diff options
context:
space:
mode:
Diffstat (limited to 'examples/vendingmachines.html')
-rw-r--r--examples/vendingmachines.html18
1 files changed, 10 insertions, 8 deletions
diff --git a/examples/vendingmachines.html b/examples/vendingmachines.html
index 2018547..4012ce2 100644
--- a/examples/vendingmachines.html
+++ b/examples/vendingmachines.html
@@ -32,14 +32,16 @@
LS.imagePath = '../resources/images/';
LS.dataPath = '../data.json';
- var map = LS.map('map', {
- indoor: false,
- });
-
- LS.getData(function(data) {
- var layer = LS.getVendingMachinesLayer();
- layer.addTo(map);
- });
+ (function() {
+ var map = LS.map('map', {
+ indoor: false,
+ });
+
+ LS.getData(function(data) {
+ var layer = LS.getVendingMachinesLayer();
+ layer.addTo(map);
+ });
+ })();
</script>
</body>
</html>