summaryrefslogtreecommitdiff
path: root/examples/basic.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/basic.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/basic.html')
-rw-r--r--examples/basic.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/basic.html b/examples/basic.html
index 07a8382..af91d0c 100644
--- a/examples/basic.html
+++ b/examples/basic.html
@@ -28,7 +28,9 @@
<script type="text/javascript">
LS.dataPath = '../data.json';
- var map = LS.map('map');
+ (function() {
+ var map = LS.map('map');
+ })();
</script>
</body>
</html>