summaryrefslogtreecommitdiff
path: root/examples/workstations.html
diff options
context:
space:
mode:
authorChristopher Baines <cb15g11@soton.ac.uk>2014-09-17 15:06:15 +0100
committerChristopher Baines <cb15g11@soton.ac.uk>2014-09-17 15:06:15 +0100
commit9373af8df20df1e125e72c96ec18b5fc67c73405 (patch)
tree84f26cc1e604bc08adec80a8e14a0549536c59ce /examples/workstations.html
parent541329d02b32c0ce547d62e5b7b7f42ea9fd2a40 (diff)
downloadleaflet-soton-9373af8df20df1e125e72c96ec18b5fc67c73405.tar
leaflet-soton-9373af8df20df1e125e72c96ec18b5fc67c73405.tar.gz
Less globals in examples
Fix a problem highlighted by this in the vending manchines layer.
Diffstat (limited to 'examples/workstations.html')
-rw-r--r--examples/workstations.html8
1 files changed, 5 insertions, 3 deletions
diff --git a/examples/workstations.html b/examples/workstations.html
index 819c41b..bfa2136 100644
--- a/examples/workstations.html
+++ b/examples/workstations.html
@@ -31,9 +31,11 @@
LS.imagePath = '../resources/images/';
LS.dataPath = '../data.json';
- var map = LS.map('map', {
- workstations: true
- });
+ (function() {
+ var map = LS.map('map', {
+ workstations: true
+ });
+ })();
</script>
</body>
</html>