/
index.html
46 lines (40 loc) · 1.7 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
46
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>First News App</title>
<link rel="stylesheet" href="../static/style.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.7/leaflet.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.7/leaflet.js"></script>
</head>
<body>
<nav>
<a href="http://first-news-app.readthedocs.org/">
<img src="../static/irelogo.png">
</a>
</nav>
<header>
<h1>Darnell R. Mallory, a 18 year old, black male died on 1992-04-30
in a death at Santa Monica Boulevard & Seward Street in Hollywood.</h1>
</header>
<div id="map" style="width:100%; height:300px;"></div>
<p><a href="/">« Back</a></p>
<script type="text/javascript">
var map = L.map('map').setView([34.09097156, -118.3341384], 16);
var mapquestLayer = new L.TileLayer('http://{s}.mqcdn.com/tiles/1.0.0/map/{z}/{x}/{y}.png', {
maxZoom: 18,
attribution: 'Data, imagery and map information provided by <a href="http://open.mapquest.co.uk" target="_blank">MapQuest</a>,<a href="http://www.openstreetmap.org/" target="_blank">OpenStreetMap</a> and contributors.',
subdomains: ['otile1','otile2','otile3','otile4']
});
map.addLayer(mapquestLayer);
var blackIcon = L.Icon.extend({
options: {
iconUrl: "../static/marker-24.png",
iconSize: [24, 24]
}
});
var marker = L.marker([34.09097156, -118.3341384], {icon: new blackIcon()}).addTo(map);
</script>
</body>
</html>