From 9373af8df20df1e125e72c96ec18b5fc67c73405 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Wed, 17 Sep 2014 15:06:15 +0100 Subject: Less globals in examples Fix a problem highlighted by this in the vending manchines layer. --- examples/zepler.html | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'examples/zepler.html') diff --git a/examples/zepler.html b/examples/zepler.html index 0900992..843373e 100644 --- a/examples/zepler.html +++ b/examples/zepler.html @@ -32,14 +32,16 @@ LS.imagePath = '../resources/images/'; LS.dataPath = '../data.json'; - var map = LS.map('map', { - indoor: true, - zoom: 20, - center: [50.93732, -1.39774], - highlight: { - "http://id.southampton.ac.uk/building/59": true - } - }); + (function() { + var map = LS.map('map', { + indoor: true, + zoom: 20, + center: [50.93732, -1.39774], + highlight: { + "http://id.southampton.ac.uk/building/59": true + } + }); + })(); -- cgit v1.2.3