I need to let the user input a geocode (LatLng ) of an arbitrary point of the map, for store in the DB and later use.
Before embracing the duty, Do you know a jQuery plug-in or javascript that:
- Pop-ups a Google map
- The user navigate the map
- The user click on a point
- It places the selected LatLng in a textbox
- Close the pop-up
(or something along the lines)
I strongly recommend to use the v3 api since it is equally easy to use and fast to learn as a plugin.Also a plugin won’t offer you the popup.
So here is my solution:
1. Import
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>2. Place a div in your html
<div class="mapClass" id="mapDiv" ></div>3. Initialize your map
Voila,you get your map and the navigation controls
4.Bind onclick event
google.maps.event.addListener(map, "click",yourFunction);And implement your function to get the coords from the click and fill some textfields or something plus add a marker
That’s it.It is not tested though.
Now if you want to add all this in popup use colorbox
If you still want to use plugins check here
Cheers