summaryrefslogtreecommitdiff
path: root/examples/bus.html
diff options
context:
space:
mode:
Diffstat (limited to 'examples/bus.html')
-rw-r--r--examples/bus.html14
1 files changed, 8 insertions, 6 deletions
diff --git a/examples/bus.html b/examples/bus.html
index 17daae9..43de40f 100644
--- a/examples/bus.html
+++ b/examples/bus.html
@@ -41,12 +41,14 @@
LS.imagePath = '../resources/images/';
LS.dataPath = '../data.json';
- var map = LS.map('map', {
- busRoutes: true,
- busRouteControl: true
- });
-
- L.control.locate().addTo(map);
+ (function() {
+ var map = LS.map('map', {
+ busRoutes: true,
+ busRouteControl: true
+ });
+
+ L.control.locate().addTo(map);
+ })();
</script>
</body>
</html>