All things Google maps can be found here :) http://code.google.com/apis/maps/documentation/
As to your question you simple do Gmap.getCenter(); this will return a GLatLng Object with your center point lat and long in it . On Tue, Aug 25, 2009 at 12:28 PM, Robert <[email protected]> wrote: > > I discovered mootools just a few weeks ago and have already done some > very cool things on a new project - and I'm not even a real > programmer. Many thanks to the mootools developers. Now I need help > with something beyond my ability, but it seems like it should be easy. > > My users currently fill out a form containing address, city and state. > I can pass that to Google Maps and the maps come up centered on that > basic location. But in many cases the location shown by Google isn't > exactly correct. That's a big problem if Google shows it on the wrong > side of a major highway for example. > > So, I would like to use the original address as the starting point on > a map and then allow the user to adjust the map so it's centered on > the proper place. The user can drag the map around and zoom in, and > then double clicking on the Google map centers it on the new location. > I need to extract the latitude and longitude of that center point to > save in a database after the user is satisfied with the positioning of > the map. > > I can do everything myself except the most important thing - get the > actual lat/long coordinates as the user adjusts the map. > > Possible? Impossible? Already done by some mootools add-on? Let me > know if you can help. >
