-
Notifications
You must be signed in to change notification settings - Fork 0
/
map1.html
32 lines (31 loc) · 963 Bytes
/
map1.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
<!DOCTYPE html>
<html>
<head>
<style>
body {
margin: 0;
}
#map {
height: 100vh;
width: 100vw;
}
</style>
</head>
<body>
<div id="map"></div>
<script>
let map;
function initMap() {
var options = {mapTypeControl: false, fullscreenControl: false, streetViewControl: false, mapTypeId: 'satellite', minZoom: null, maxZoom: null, zoomControl: false, gestureHandling: 'auto', zoom: 11.0, center: {lat: -33.852 ,lng: 151.211}};
map = new google.maps.Map(document.getElementById('map'), options);
map.addListener('bounds_changed', () => {
var bound = JSON.stringify(map.getBounds());
console.log('bounds_changed:' + bound);
});
}
console.log("before load");
</script>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBqXEo_1aZqXj6Gr7u2ImhegZjbOMmKbzg&callback=initMap">
</script>
</body>
</html>