-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainMap.html
35 lines (29 loc) · 1.14 KB
/
MainMap.html
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
<html>
<head>
<!-- Bring in the proper character set -->
<meta charset="utf-8">
<!-- Tell the mobile browser to disable unwanted scaling of the page and set it to its actual size. -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<!-- Grab leaflet's basic stylesheet -->
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.6.0/dist/leaflet.css"/>
<!-- Add some basic styling (might make this a seperate file later) -->
<style type="text/css">
body {
padding: 0;
margin: 0;
}
html, body, #mapid { /* To make our map div element stretch to all available space (fullscreen). */
height: 100%;
width: 100vw;
}
</style>
</head>
<body>
<!-- Render the base map here (mapid is the "name" of the map) -->
<div id="mapid"></div>
<!-- Bring in base leaflet scripts -->
<script src="https://unpkg.com/leaflet@1.6.0/dist/leaflet.js"></script>
<!-- Reference our map script (might make it so you can switch between maps) -->
<script type="text/javascript" src="InteractiveMap.js"></script>
</body>
</html>