summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorChristopher Baines <cb15g11@soton.ac.uk>2014-08-04 18:59:32 +0100
committerChristopher Baines <cb15g11@soton.ac.uk>2014-08-06 22:42:30 +0100
commit5b48b6172c9d88d4d3290c37def92efda0a60059 (patch)
treefc1ef83b88bb4770c03451a52bfe5154c9bbdd29 /examples
parentdeb8f4ac1eb06221783ead9ff71bbddf6823c651 (diff)
downloadleaflet-soton-5b48b6172c9d88d4d3290c37def92efda0a60059.tar
leaflet-soton-5b48b6172c9d88d4d3290c37def92efda0a60059.tar.gz
Improve bus route example
Also extract the route related classes from leaflet-soton.js, in preparation to make a leaflet-route plugin. The new bus route example uses the leaflet-sidebar plugin, as this works better on multiple screen sizes.
Diffstat (limited to 'examples')
-rw-r--r--examples/bus.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/bus.html b/examples/bus.html
index a936262..17daae9 100644
--- a/examples/bus.html
+++ b/examples/bus.html
@@ -5,6 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="../resources/leaflet-locatecontrol/src/L.Control.Locate.css" />
+ <link rel="stylesheet" href="../resources/leaflet-sidebar/src/L.Control.Sidebar.css" />
<link rel="stylesheet" href="../resources/leaflet/dist/leaflet.css" />
<link rel="stylesheet" href="../src/leaflet-soton.css" />
@@ -23,12 +24,16 @@
<body>
<div id="map"></div>
+ <div id="sidebar"></div>
+
<script src="../resources/leaflet/dist/leaflet-src.js"></script>
<script src="../resources/leaflet-markercluster/dist/leaflet.markercluster.js"></script>
<script src="../resources/leaflet-locatecontrol/src/L.Control.Locate.js"></script>
<script src="../resources/leaflet-hash/leaflet-hash.js"></script>
<script src="../resources/leaflet-textpath/leaflet.textpath.js"></script>
<script src="../resources/leaflet-indoor/leaflet-indoor.js"></script>
+ <script src="../resources/leaflet-sidebar/src/L.Control.Sidebar.js"></script>
+ <script src="../resources/leaflet-route/leaflet-route.js"></script>
<script src="../src/leaflet-soton.js"></script>