-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmap.html
120 lines (118 loc) · 4.53 KB
/
map.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
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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<style type="text/css">
html { height: 100% }
body {
/* height: 360px; width:580px;margin: 100px; */
height: 100%; width: 100%; margin: 0;
padding: 0;
}
#map-canvas { height: 100% }
</style>
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAXap4g4TdpmQHPCw6lPS_kS4xDmrquvf4"></script>
<script type="text/javascript">
function initialize() {
var mapOptions = {
center: new google.maps.LatLng(41.6515, -4.7295),
zoom: 16
};
var map = new google.maps.Map(document.getElementById("map-canvas"),
mapOptions);
// wizard to set map colors
// http://gmaps-samples-v3.googlecode.com/svn/trunk/styledmaps/wizard/index.html
var mapStyle = [
/*{
"featureType": "administrative",
"stylers": [
{ "visibility": "off" }
]
},*/{
"featureType": "road",
"elementType": "geometry.fill",
"stylers": [
{ "visibility": "off" }
]
},{
"featureType": "landscape",
"elementType": "labels",
"stylers": [
{ "visibility": "off" }
]
},{
"featureType": "poi",
"stylers": [
{ "visibility": "off" }
]
},{
"featureType": "poi.park",
"elementType": "geometry",
"stylers": [
{ "visibility": "on" },
{ "color": "#2E6A00" },
{ "saturation": -70 },
{ "lightness": 22 }
]
},{
/* "featureType": "poi",
"elementType": "labels.text.fill",
"stylers": [
{ "color": "#ff8080" },
{ "visibility": "off" }
]
},{***/
"featureType": "road",
"stylers": [
{ "lightness": -25 },
{ "gamma": 0.01 }
]
},{
"featureType": "road",
"elementType": "labels.text.fill",
"stylers": [
{ "visibility": "on" }
]
},{
"featureType": "road",
"elementType": "labels.text.fill",
"stylers": [
{ "color": "#808080" }
]
},{
"featureType": "road",
"elementType": "labels.icon",
"stylers": [
{ "visibility": "off" }
]
},{
"featureType": "road",
"elementType": "labels.text",
"stylers": [
{ "visibility": "off" }
]
},{
"featureType": "water",
"stylers": [
{ "color": "#227DBC" },
{ "saturation": -62 },
{ "lightness": -14 }
]
},{
"featureType": "landscape.man_made",
"stylers": [
{ "color": "#33383D" },
{ "lightness": -30 }
]
},{
}
];
map.setOptions({styles: mapStyle});
}
google.maps.event.addDomListener(window, 'load', initialize);
</script>
</head>
<body>
<div id="map-canvas"/>
</body>
</html>