-
Notifications
You must be signed in to change notification settings - Fork 1
/
index-map.html
103 lines (93 loc) · 3.31 KB
/
index-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
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.css">
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link href="https://maxcdn.bootstrapcdn.com/bootswatch/3.3.7/cosmo/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="assets/style.css">
<style>
#map {
height: 400px;
width: 100%;
}
</style>
<title>San Diego's Furry Friends</title>
</head>
<body>
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">Find a Furry Friend!</h3>
</div>
<div class="panel-body">
<div id="buttonDiv">
<p>pet category buttons go here</p>
</div>
</div>
</div>
<div class="row">
<div class="col-md-8">
<div class="row">
<div class="giphyResults">
<div id="giphyDiv">
</div>
<div id="map"></div>
</div>
</div>
</div>
<!-- <div class="col-md-4">
<div class="userInput">
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">What other kind of pet are you looking for?</h3>
</div>
<div class="panel-body">
<form>
<div class="form-group">
<label for="input">Pet Types</label>
<input type="text" class="form-control" id="formInput">
<small id="inputHelp" class="form-text text-muted">Enter the type of pet you'd like to search for.</small>
</div>
<button type="submit" id="submitBtn" class="btn btn-primary">Submit</button>
</form>
</div>
</div>
</div>
</div> -->
</div>
<!-- <script>
// function initMap() {
// var map = new google.maps.Map(document.getElementById('map'), {
// zoom: 12,
// center: {lat: 32.715, lng: -117.161}
// });
// // var geocoder = new google.maps.Geocoder();
// // document.getElementById('submit').addEventListener('click', function() {
// // geocodeAddress(geocoder, map);
// // });
// }
// function geocodeAddress(geocoder, resultsMap, address) {
// address="5220 Fiore Ter San Diego CA 92122";
// geocoder.geocode({'address': address}, function(results, status) {
// if (status === 'OK') {
// //resultsMap.setCenter(results[0].geometry.location)
// console.log(results);
// console.log("geocode plot suzzessful" + address);
// var marker = new google.maps.Marker({
// setMap: resultsMap,
// position: results[0].geometry.location,
// icon: 'https://maps.google.com/mapfiles/kml/shapes/parking_lot_maps.png'
// });
// } else {
// alert('Geocode was not successful for the following reason: ' + status);
// }
// });
// }
</script> -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="assets/javascript-map.js"></script>
<script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyACBlirO36YqObG_qKkz9NxVOW9WYz34fg&callback=initMap">
</script>
</body>
</html>