Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.
Open
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
1310f4f
First Version
gautamc1106 Sep 26, 2016
eede897
First Version
gautamc1106 Sep 26, 2016
0858fdd
Update index.html
gautamc1106 Sep 26, 2016
8ba8033
Update index.html
gautamc1106 Sep 26, 2016
f5a2fab
Update index.html
gautamc1106 Sep 26, 2016
1404ebe
Update index.html
gautamc1106 Sep 26, 2016
3f5cbc1
Update index.html
gautamc1106 Sep 26, 2016
c86d3cc
Update index.html
gautamc1106 Sep 26, 2016
e1b2ba8
Update index.html
gautamc1106 Sep 26, 2016
152f49b
Update index.html
gautamc1106 Sep 26, 2016
4c539c0
Update index.html
gautamc1106 Sep 26, 2016
1d781cb
Update index.html
gautamc1106 Sep 26, 2016
ff53f1b
Update index.html
gautamc1106 Sep 26, 2016
bda2e6c
Update index.html
gautamc1106 Sep 26, 2016
377e5d0
Update index.html
gautamc1106 Sep 26, 2016
420c80a
Update index.html
gautamc1106 Sep 26, 2016
18fb661
Update index.html
gautamc1106 Sep 26, 2016
4161c55
Update index.html
gautamc1106 Sep 26, 2016
6eb3546
Update index.html
gautamc1106 Sep 26, 2016
10c8c57
Update index.html
gautamc1106 Sep 26, 2016
1659ad9
Update index.html
gautamc1106 Sep 26, 2016
d5ff790
Update index.html
gautamc1106 Sep 26, 2016
43a4df1
Update index.html
gautamc1106 Sep 26, 2016
9b6f1d8
Update index.html
gautamc1106 Sep 26, 2016
6d2d3b9
Update index.html
gautamc1106 Sep 26, 2016
b41c96b
Update index.html
gautamc1106 Sep 26, 2016
f3c397d
Update index.html
gautamc1106 Sep 26, 2016
c358d30
Update index.html
gautamc1106 Sep 26, 2016
941e76e
Initial Update
gautamc1106 Sep 26, 2016
296c53a
Update index.html
gautamc1106 Sep 27, 2016
7a2c36b
Update index.html
gautamc1106 Sep 27, 2016
ca3f11b
Update index.html
gautamc1106 Sep 27, 2016
6fc1651
Update index.html
gautamc1106 Sep 27, 2016
ce5715c
Update index.html
gautamc1106 Sep 27, 2016
fe2ef86
a
gautamc1106 Sep 28, 2016
85dff68
Update index.html
gautamc1106 Sep 28, 2016
4486c6f
Update index.html
gautamc1106 Sep 28, 2016
af3a6f3
Update index.html
gautamc1106 Sep 28, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
92 changes: 91 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,98 @@
<!DOCTYPE html>
<html>
<head>
<title>Mashup</title>
<title>Gautam's Map Quest</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<style type="text/css">
}
html,body{
background-color: red;
height: 100%;
width:100%;
text-align:center;
}
#map, #pano {
height:50%;
width:50%;
left:75%;
top:25%;
}
#floating-panel{
position: absolute;
top: 80%;
left: 50%;
z-index: 5;
background-color: #fff;
padding: 5px;
border: 1px solid #999;
text-align: center;
font-family: 'Roboto','sans-serif';
line-height: 30px;
padding-left: 10px;
}
#main{
font: 50px;
color: black;
text-align: center;
</style>
</head>
<body>
<div id="main">Welcome to Gautam's Map Quest</div>
<div id="floating-panel">
<input id="address" type="text" value="">
<input id="submit" type="button" value="Find Location">
</div>
<div id="map"></div>
<div id="pano"></div>
<script>
function geocodeAddress(geocoder, resultsMap) {
var address = document.getElementById('address').value;
geocoder.geocode({'address': address}, function(results, status) {
if (status === 'OK') {
resultsMap.setCenter(results[0].geometry.location);
var marker = new google.maps.Marker({
map: resultsMap,
position: results[0].geometry.location
});
} else {
alert('Could not find address for the following reason: ' + status);
}
});
var panorama = new google.maps.StreetViewPanorama(
document.getElementById('pano'), {
position: results[0].geometry.location,
pov: {
heading: 34,
pitch: 10
}
});
map.setStreetView(panorama);
var panorama = new google.maps.StreetViewPanorama(
document.getElementById('pano'), {
position: results[0].geometry.location,
pov: {
heading: 34,
pitch: 10
}
});
map.setStreetView(panorama);
}
function initMap() {
var map = new google.maps.Map(document.getElementById('map'), {
zoom: 8,
center: {lat: -34.397, lng: 150.644}
});
var geocoder = new google.maps.Geocoder();

document.getElementById('submit').addEventListener('click', function() {
geocodeAddress(geocoder, map);
});

}
</script>
<script async defer
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyByAcKWzArzxOwNRHIRNZOuJlkN9uZ7xOw&callback=initMap">
</script>
</body>
</html>