From 51840747236ae5b43e05cb3fd9bc3a16e16a20fb Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Wed, 17 Sep 2014 14:22:20 +0100 Subject: Fix show and close info Also modify the full example such that this cannot happen again. --- examples/full.html | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'examples') diff --git a/examples/full.html b/examples/full.html index c59fdea..10037ab 100644 --- a/examples/full.html +++ b/examples/full.html @@ -36,12 +36,14 @@ LS.imagePath = '../resources/images/'; LS.dataPath = '../data.json'; - var map = LS.map('map', { - workstations: true, - indoor: true - }); - - L.control.locate().addTo(map); + (function() { + var map = LS.map('map', { + workstations: true, + indoor: true + }); + + L.control.locate().addTo(map); + })(); -- cgit v1.2.3