forked from python-visualization/folium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
osm.html
51 lines (25 loc) · 949 Bytes
/
osm.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
<!DOCTYPE html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.css" />
<script src="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.js"></script>
<style>
#map {
position:absolute;
top:0;
bottom:0;
right:0;
left:0;
}
</style>
</head>
<body>
<div class="bearcart-map" id="folium_a8b55a5fb7a04d44bb1a501120cf352b" style="width: 960px; height: 500px"></div>
<script>
var map = L.map('folium_a8b55a5fb7a04d44bb1a501120cf352b').setView([45.5236, -122.675], 10);
L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
maxZoom: 18,
attribution: 'Map data (c) <a href="http://openstreetmap.org">OpenStreetMap</a> contributors'
}).addTo(map);
</script>
</body>