summaryrefslogtreecommitdiff
path: root/examples/basic.html
blob: 161ecaab0cfd62304bf882766f18bdff69a715db (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
<!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="../src/sum.css" />
    <link rel="stylesheet" href="../resources/leaflet/dist/leaflet.css" />

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

        html, body, #map {
          height: 100%;
        }
    </style>
</head>
<body>
    <div id="map"></div>

    <script src="../resources/leaflet/dist/leaflet-src.js"></script>

    <script src="../src/sum.js"></script>

    <script type="text/javascript">
        SUM.dataPath = '../data.json';

        var map = SUM.map('map');
    </script>
</body>
</html>