-
Notifications
You must be signed in to change notification settings - Fork 1
/
FinishedTemplate.html
44 lines (33 loc) · 1.33 KB
/
FinishedTemplate.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
<html>
<head>
<title>Maptime Leaflet Map</title>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.css" />
<script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script>
<style>
#map {
width: 900px;
height: 500px;
}
</style>
</head>
<h1>Map of Edmonton and Vancouver</h1>
<body>
<div id="map"></div>
<script>
var map = L.map('map').setView([50.9981, -118.1957], 6);
var Stamen_Toner = L.tileLayer('http://stamen-tiles-{s}.a.ssl.fastly.net/toner/{z}/{x}/{y}.{ext}', {
attribution: 'Map tiles by <a href="http://stamen.com">Stamen Design</a>, <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a> — Map data © <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>',
subdomains: 'abcd',
minZoom: 0,
maxZoom: 20,
ext: 'png'
}).addTo(map);
var edmontonMarker = L.marker([53.5444, -113.4909]).addTo(map);
edmontonMarker.bindPopup("Edmonton, BC");
var vancouverMarker = L.marker([49.2827, -123.1207]).addTo(map);
vancouverMarker.bindPopup("Vancouver, BC");
</script>
</body>
<p>This is a map made at a #MaptimeYEG event</p>
<p>Devin Bartley made this map</p>
</html>