diff options
author | Christopher Baines <cb15g11@soton.ac.uk> | 2014-09-17 15:06:15 +0100 |
---|---|---|
committer | Christopher Baines <cb15g11@soton.ac.uk> | 2014-09-17 15:06:15 +0100 |
commit | 9373af8df20df1e125e72c96ec18b5fc67c73405 (patch) | |
tree | 84f26cc1e604bc08adec80a8e14a0549536c59ce /examples/indoor.html | |
parent | 541329d02b32c0ce547d62e5b7b7f42ea9fd2a40 (diff) | |
download | leaflet-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/indoor.html')
-rw-r--r-- | examples/indoor.html | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/examples/indoor.html b/examples/indoor.html index 47de9a2..269149f 100644 --- a/examples/indoor.html +++ b/examples/indoor.html @@ -30,9 +30,11 @@ LS.dataPath = '../data.json'; LS.imagePath = '../resources/images/'; - var map = LS.map('map', { - indoor: true - }); + (function() { + var map = LS.map('map', { + indoor: true + }); + })(); </script> </body> </html> |