-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmap.html
63 lines (51 loc) · 1.97 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
59
60
61
62
63
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1" , user-scalable=no />
<title></title>
<!-- Links (anchor tags) inside Google Maps InfoBox only work with version "1.0.0-beta.1". From version "1.0.0-beta.2" they don't work, nothing happens when clicking. -->
<script data-require="angular.js@1.3.0-beta.5" data-semver="1.3.0-beta.5" src="https://code.angularjs.org/1.3.0-beta.5/angular.js"></script>
<link rel="stylesheet" href="style.css" />
<script src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script src="http://http://google-maps-utility-library-v3.googlecode.com/svn/trunk/infobox/src/infobox.js"></script>
<script src="app.js"></script>
</head>
<body ng-app="project">
<div class="map-container" ng-controller="MapCtrl">
<h3>Locate nearest pharmacy</h3>
<input type="text" name="zip" ng-minlength="5" ng-maxlength="9" ng-model="zip" style="width: 80px; height=50px" placeholder="enter zip" />
<button class="btn btn-primary" ng-click="findit(zip)">Locate</button>
{{mylocation}}
<div id="map-canvas">
</div>
<div>
<table>
<tr>Choose your store
<td><strong>{{title0}}</strong> miles
<a href="" ng-click="choose(result)">
<p>{{result}}</p>
</a>
<strong>{{title1}}</strong> miles
<a href="" ng-click="choose(result1)">
<p>{{result1}}</p>
</a>
<strong>{{title2}}</strong> miles
<a href="" ng-click="choose(result2)">
<p>{{result2}}</p>
</a>
<strong>{{title3}}</strong> miles
<a href="" ng-click="choose(result3)">
<p>{{result3}}</p>
</a>
<strong>{{title4}}</strong> miles
<a href="" ng-click="choose(result4)">
<p>{{result4}}</p>
</a>
</td>
</tr>
</table>
</div>
</div>
</body>
</html>