|
Jul
08
|
A very light, simple and easy to use address picker using Google Maps API v3 and jQuery, you may use this widget to embd in you web forms if you want user to input address or/and latitude/longtitude.

Live Demo
Download
Code sample:
<script type="text/javascript"
src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script>
<script type="text/javascript" src="map.js"></script>
<input type="reset" id="pick_addr" value="Pick Address" />
<script type="text/javascript">
<!--
$(document).ready(function(){
function callback(pos, addr, addr_ext){
alert(pos, addr, addr_ext);
}
var default_pos = new google.maps.LatLng(39.904214, 116.407413);
var opt = {
pos: default_pos,
callback: callback
};
var addr_picker = new AddressPicker(opt);
$('#pick_addr').click(function(){
addr_picker.open();
});
});
//-->
</script>
6 Responses to “Address Picker Using Google Maps API v3”
Pages:
Leave a Reply
2011-09-07 at 20:20:18
hi
plz email me a code of google location picker i am waiting your response
2011-09-08 at 02:21:58
to jawwad: just download from this link: http://www.ideawu.com/prj/address-picker/map.js
2011-09-08 at 12:36:46
thanks ,yes i download it. i want to show lat long in a text field not in alert and save button on google map, not in mark
2011-09-08 at 16:36:38
Hi, jawwad, I don’t quite follow you question. The demo shows how to display lat long in a callback function which set as part of the options when you new a AddressPicker.
2011-09-08 at 17:19:15
can help for get latlon ? in text field
2011-12-05 at 14:38:48
Useful tips. Thanks for this blog. I can use this as tool for my ***job***
.