summaryrefslogtreecommitdiff
path: root/examples/bus.html
blob: 3086d43b86b5d4b4fd51c1d1857476f5ea69631a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<!DOCTYPE html>
<html>
<head>
    <title>Map - University of Southampton</title>
    <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" />

    <style>
        body {
          padding: 0;
          margin: 0;
        }

        html, body, #map {
          height: 100%;
        }
    </style>
</head>
<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="../resources/uos-live.js/libraries/pollymer/pollymer.js"></script>
    <script src="../resources/uos-live.js/uos-live.js"></script>

    <script src="../src/leaflet-soton.js"></script>

    <script type="text/javascript">
        LS.imagePath = '../resources/images/';
        LS.dataPath = '../data.json';

        (function() {
            var map = LS.map('map', {
                busRoutes: true,
                busRouteControl: true
            });

            L.control.locate().addTo(map);
        })();
    </script>
</body>
</html>