-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
76 lines (68 loc) · 2.12 KB
/
test.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>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<title>Ground Overlays</title>
<style>
/* Always set the map height explicitly to define the size of the div
* element that contains the map. */
#map {
height: 100%;
}
/* Optional: Makes the sample page fill the window. */
html, body {
height: 100%;
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<div id="map"></div>
<script>
// This example uses a GroundOverlay to place an image on the map
// showing an antique map of Newark, NJ.
var historicalOverlay;
function initMap() {
var map = new google.maps.Map(document.getElementById('map'), {
zoom: 16,
center: {lat: 30.2839, lng: -97.7349}
});
var imageBounds = {
north: 30.2942200,
south: 30.2713533,
east: -97.7196500,
west: -97.7442190
};
historicalOverlay = new google.maps.GroundOverlay(
'UT-buildings.png',
imageBounds);
historicalOverlay.setMap(map);
function ajaxMap(){
initMap();
if( $('#map').find('div').length ){
StopTimer();
}
}
var src = 'https://www.cs.utexas.edu/~rsmoreno/Accessible.xml';
// var src = 'data/Accessible_Doors.kml';
// var src = 'data/accessible.kml'
var kmlLayer = new google.maps.KmlLayer(src, {
suppressInfoWindows: true,
preserveViewport: false,
map: map
});
}
</script>
<script async defer
src="http://maps.googleapis.com/maps/api/js?key=AIzaSyB0w2RQ47__MGHIBzUHM9-K69tQonoR7_s&callback=initMap">
</script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0-beta/css/materialize.min.css">
<link rel="stylesheet" href="css/main.css">
</head>
<body>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0-beta/js/materialize.min.js"></script>
<script src="js/main.js"></script>
</body>
</html>