-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathmnu-overlays.html
76 lines (44 loc) · 1.76 KB
/
mnu-overlays.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
<!doctype html>
<html lang = "en" >
<head>
<meta charset = "utf-8" >
<title></title>
<style>
body { font: 12pt monospace; margin: 0; padding: 0 10px 0 0; }
input[type=range] { -webkit-appearance: none; -moz-appearance: none; background-color: #ddd; width: 100%;}
input[type=range]::-moz-range-thumb { background-color: #888; border-radius: 0; width: 10px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; background-color: #888; height: 20px; width: 10px; }
</style>
</head>
<body>
Map Overlay
<select id=selMap size=10 onchange=setMapOverlay(); ></select>
<script>
var mapTypes = [
['Google Maps','https://mt1.google.com/vt/x='],
['Google Maps Terrain','https://mt1.google.com/vt/lyrs=t&x='],
['Google Maps Satellite','https://mt1.google.com/vt/lyrs=s&x='],
['Google Maps Hybrid','https://mt1.google.com/vt/lyrs=y&x='],
['Open Street Map','http://tile.openstreetmap.org/'],
['Open Cycle Map', 'http://tile.opencyclemap.org/cycle/'],
// ['MapQuest OSM', 'http://otile3.mqcdn.com/tiles/1.0.0/osm/'],
// ['MapQuest Satellite', 'http://otile3.mqcdn.com/tiles/1.0.0/sat/'],
['Stamen terrain background','http://tile.stamen.com/terrain-background/'],
['Esri Satellite', 'https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/']
];
init()
function init() {
for ( var i = 0; i < mapTypes.length; i++ ) {
selMap.appendChild( document.createElement( 'option' ) );
selMap.children[ i ].text = mapTypes[ i ][ 0 ];
}
}
function setMapOverlay() {
console.log( '', 23 );
parent.mainIframe.contentWindow.mapType = mapTypes[ selMap.selectedIndex ];
parent.mainIframe.contentWindow.selectedIndex = selMap.selectedIndex;
parent.mainIframe.contentWindow.drawMapOverlay();
}
</script>
</body>
</html>