-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathindex.html
61 lines (50 loc) · 2.6 KB
/
index.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
<!DOCTYPE html>
<head>
<meta charset='utf-8'>
<title>rjshade/gmaps-autocomplete @ GitHub</title>
<title>Google Maps and jqueryUI</title>
<link type="text/css" href="styles/main.css" rel="stylesheet" />
<link type="text/css" href="styles/jquery-ui/jquery-ui-1.8.16.custom.css" rel="stylesheet" />
<!-- google maps -->
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<!-- jquery -->
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<!-- jquery UI -->
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js"></script>
<!-- our javascript -->
<script type="text/javascript" src="js/gmaps.js"></script>
</head>
<body>
<a href="https://github.com/rjshade/gmaps-autocomplete"><img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub" /></a>
<div id='container'>
<div class="download">
<a href="https://github.com/rjshade/gmaps-autocomplete/zipball/master">
<img border="0" width="90" src="https://github.com/images/modules/download/zip.png"></a>
<a href="https://github.com/rjshade/gmaps-autocomplete/tarball/master">
<img border="0" width="90" src="https://github.com/images/modules/download/tar.png"></a>
</div>
<div id='instructions'>
<h1>Geocoding with Google Maps and jQuery UI</h1>
<p>This page shows how you can use the <a href="http://jqueryui.com/demos/autocomplete/">autocomplete widget</a> from <a href="http://jqueryui.com/">jQuery UI</a> in conjunction with the <a href="https://developers.google.com/maps/documentation/javascript/reference">Google Maps geocoding API</a> .
</p>
<p>
Start typing a in the search box to trigger the drop-down autocomplete menu. Reverse lookup is also implemented: click the map (or drag an existing marker) and the search box will be populated with the closest address Google can find.
</p>
<p>
The source code is on GitHub: <a href="https://github.com/rjshade/gmaps-autocomplete">rjshade/gmaps-autocomplete</a>
</p>
</div>
<hr/>
<div id='input'>
<input id='gmaps-input-address' placeholder='Start typing a place name...' type='text' />
<br/>
<br/>
Latitude: <span id='gmaps-output-latitude'></span>
<br/>
Longitude: <span id='gmaps-output-longitude'></span>
<br/>
<div id='gmaps-error'></div>
</div>
<div id='gmaps-canvas'></div>
</div>
</body>