-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
45 lines (31 loc) · 1.08 KB
/
index.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
36
37
38
39
40
41
42
43
44
45
<!DOCTYPE html>
<html>
<head>
<title>Geog 483 Leaflet Tutorial</title>
<!-- This tutorial is based on the official Leaflet quickstart: http://leafletjs.com/examples/quick-start/ -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" type="image/x-icon" href="docs/images/favicon.ico" />
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" />
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script>
</head>
<body>
<style>
body { margin:0; padding:0}
#mapid { position:absolute;
width:80%;
height:80%;
margin-left:20px;
margin-top:15px;
border-style:solid;
border-width:3px}
</style>
<div id="mapid"</div>
<script>
var mymap = L.map('mapid').setView([43.470, -80.548], 16);
L.tileLayer("http://tile.openstreetmap.org/{z}/{x}/{y}.png", {
attribution: 'Map data © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, '
}).addTo(mymap);
</script>
</body>
</html>