diff options
Diffstat (limited to 'examples/basic.html')
-rw-r--r-- | examples/basic.html | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/examples/basic.html b/examples/basic.html new file mode 100644 index 0000000..161ecaa --- /dev/null +++ b/examples/basic.html @@ -0,0 +1,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> |