blob: 8418241bef20f24d7140700ed2cd81b17d268d34 (
plain)
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
|
<html>
<head>
<link rel="stylesheet" href="leaflet/dist/leaflet.css" />
<script src="leaflet/dist/leaflet-src.js"></script>
<style>
body {
padding: 0;
margin: 0;
}
html, body, #map {
height: 100%;
}
</style>
</head>
<body>
<div id="map">
</div>
<script>
var map = L.map('map', {
center: [50.9087036, -1.4045204], // The Art House Cafe
zoom: 18
});
var tileLayer = L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
attribution: '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
});
tileLayer.addTo(map);
// Add a marker over the Art House Cafe
var marker = L.marker([50.9087036, -1.4045204])
marker.addTo(map);
</script>
</body>
</html>
|