-
Notifications
You must be signed in to change notification settings - Fork 0
/
map.html
63 lines (55 loc) · 1.2 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
<!DOCTYPE html>
<html>
<head>
<style>
#map {
height: 100%;
position: absolute;
top: 0;
bottom: -200px;
left: 0;
right: 0;
z-index: 0;
}
#container {
z-index: 100;
position: relative;
text-align: center;
border:none;
outline: none;
padding: 20dp;
}
textarea:focus, input:focus{
outline: none;
}
</style>
</head>
<body>
<div id="map"></div>
<div id='container'>
<input placeholder="Enter the weather" id="location_input"></input>
</div>
<script>
function initMap() {
var uluru = {lat: -25.363, lng: 131.044};
var map = new google.maps.Map(document.getElementById('map'), {
zoom: 4,
center: uluru,
streetViewControl: false,
mapTypeControl: false
});
map.setOptions({
zoomControl: false,
gestureHandling: 'none'
});
var marker = new google.maps.Marker({
position: uluru,
map: map
});
}
</script>
<script async defer
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBbeK2be4_yk5PnDfBdMhxqAB5YNfLbyuA&callback=initMap">
</script>
</body>
</html>