-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample2.html
More file actions
156 lines (120 loc) · 3.72 KB
/
example2.html
File metadata and controls
156 lines (120 loc) · 3.72 KB
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<!DOCTYPE html>
<head>
<style>
body {
padding:0;
margin:0;
height: 100%;
}
html{
position: fixed;
top: 0;
bottom: 0;
width: 100%;
}
#map {
height: 100%;
width: 100%;
left: 0px;
}
#map2 {
top: -90%;
height: 80%;
width: 80%;
left: 10%;
}
#map3 {
top: -160%;
height: 60%;
width: 60%;
left: 20%;
}
#map4 {
top: -210%;
height: 40%;
width: 40%;
left: 30%;
}
#map5 {
top: -240%;
height: 20%;
width: 20%;
left: 40%;
}
</style>
<title> First Web Map </title>
<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>
<script type="text/javascript" src="http://maps.stamen.com/js/tile.stamen.js?v1.3.0"></script>
</head>
<body>
<div id="map"></div>
<div id="map2"></div>
<div id="map3"></div>
<div id="map4"></div>
<div id="map5"></div>
<script>
//map1
var layer = L.tileLayer('http://tile.stamen.com/toner/{z}/{x}/{y}.png', {
attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, © <a href="http://cartodb.com/attributions">CartoDB</a>'
});
var map = L.map('map', {
scrollWheelZoom: true,
center: [10.7127837, -74.0059413],
zoom: 8
});
map.addLayer(layer);
//end map1
//map2
var layer = L.tileLayer('http://tile.stamen.com/watercolor/{z}/{x}/{y}.jpg', {
attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, © <a href="http://cartodb.com/attributions">CartoDB</a>'
});
var map2 = L.map('map2', {
scrollWheelZoom: true,
center: [40.7127837, -74.0059413],
zoom: 8
});
map2.addLayer(layer);
//end map3
//map3
var layer = L.tileLayer('http://tile.stamen.com/toner/{z}/{x}/{y}.png', {
attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, © <a href="http://cartodb.com/attributions">CartoDB</a>'
});
var map3 = L.map('map3', {
scrollWheelZoom: true,
center: [40.7127837, -74.0059413],
zoom: 8
});
map3.addLayer(layer);
//end map3
//map4
var layer = L.tileLayer('http://tile.stamen.com/watercolor/{z}/{x}/{y}.jpg', {
attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, © <a href="http://cartodb.com/attributions">CartoDB</a>'
});
var map4 = L.map('map4', {
scrollWheelZoom: true,
center: [40.7127837, -74.0059413],
zoom: 8
});
map4.addLayer(layer);
//end map4
//map5
var layer = L.tileLayer('http://tile.stamen.com/toner/{z}/{x}/{y}.png', {
attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, © <a href="http://cartodb.com/attributions">CartoDB</a>'
});
var map5 = L.map('map5', {
scrollWheelZoom: true,
center: [40.7127837, -74.0059413],
zoom: 8
});
map5.addLayer(layer);
//end map4
</script>
</body>
</html>
<!-- var layer = new L.tileLayer('http://tile.stamen.com/terrain/{z}/{x}/{y}.png', "terrain", {
attribution: 'Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://www.openstreetmap.org/copyright">ODbL</a>.'
});
var layer2 = new L.tileLayer('http://tile.stamen.com/terrain/{z}/{x}/{y}.png', "terrain", {
attribution: 'Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://www.openstreetmap.org/copyright">ODbL</a>.'
}); -->