-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinteractive-campaign-map.html
More file actions
44 lines (34 loc) · 1.61 KB
/
interactive-campaign-map.html
File metadata and controls
44 lines (34 loc) · 1.61 KB
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
<!doctype html>
<html>
<head>
<!-- Character Encoding -->
<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" />
<!-- Page Title -->
<title>Campaign Map Demo</title>
<!-- Link to leaflet.css stylesheet. -->
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.3.1/dist/leaflet.css"/>
<!-- Styling applied to the HTML element which displays the interactive map. Width and Height MUST be defined for the map to display correctly. -->
<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>
<!-- The HTML element which holds the interactive map. The id attribute MUST be defined. -->
<div id="mapid"></div>
<!-- Link to leaflet.js file. -->
<script src="https://unpkg.com/leaflet@1.3.1/dist/leaflet.js"></script>
<!-- Link to L.TileLayer.Zoomify.js file. This extends the L.TileLayer class from leaflet.js, you do not need to touch this file.-->
<script type="text/javascript" src="js/L.tileLayer.zoomify.js"></script>
<!-- Link to Interactive Campaign Map JS file with our code for displaying the interactive map. -->
<script type="text/javascript" src="js/interactive-campaign-map.js"></script>
</body>
</html>