-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIndianapolisHomeMap.html
135 lines (106 loc) · 3 KB
/
IndianapolisHomeMap.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Web Page Template</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.css" />
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" />
<link href="https://fonts.googleapis.com/css?family=Noto+Sans" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Lora" rel="stylesheet">
<style>
body {
margin: 0;
padding: 0;
background: #f5f5f5;
font-family: "Noto Sans", sans-serif;
color: #3d3d3d;
}
section {
width: 960px;
margin: 20px auto;
}
h1 {
font-family: Lora, serif;
letter-spacing: .04em;
}
h2 {
font-family: Lora, serif;
letter-spacing: .04em;
}
p {
font-size: 1em;
line-height: 1.5em;
}
a {
color: #005daa;
font-weight: bold;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
ul {
padding-left: 20px;
}
li {
margin: 10px 0
}
#map {
width: 100%;
height: 540px;
margin: 10px auto;
border: 2px solid #d3d3d3;
}
/* This is a comment in CSS styles */
</style>
</head>
<body>
<section>
<!-- This is an HTML comment. Find the comments below and follow the instructions. -->
<h1>Indianapolis - big city feel without the traffic </h1>
<div id='map'></div>
<h2>I'm still pretty confused</h2>
<p>I really hope that this map shows up! </p>
<ul>
<!-- Change the following contacts to your personal brand, whatever you want it to be! -->
<li>See my projects on GitHub:
<a href="https://github.com/kdonnell00">kdonnell00</a>
</li>
<li>Follow me on twitter:
<a href="https://twitter.com/NewMapsPlus">@NewMapsPlus</a>
</li>
<li>Visit my
<a href='#'>mapping portfolio</a>.</li>
</ul>
</section>
<script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8="
crossorigin="anonymous"></script>
<script src="https://unpkg.com/[email protected]/dist/leaflet-src.js"></script>
<script>
// This is a comment in JavaScript
// map options
var options = {
center: [39.7684, -86.1581], // lat/lon values
zoom: 11
}
// create a Leaflet map in our division container with id of 'map'
var map = L.map('map', options);
// request some basemap tiles and add to the map
var tiles = L.tileLayer('http://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png', {
attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> © <a href="http://cartodb.com/attributions">CartoDB</a>',
subdomains: 'abcd',
maxZoom: 19
}).addTo(map);
// write a custom message for the Leaflet tooltip
<<<<<<< HEAD:lab-01/index.html
var message = 'I Live Here!';
=======
// add a marker to the center of the map and open the tooltip
L.marker(map.getCenter())
.bindTooltip(message)
.addTo(map)
.openTooltip();
</script>
</body>
</html>