By chx on
I have installed GMap, GMap Location, Location and Location CCK modules and added a Location field and managed to get a Google Map to appear on the node edit screen after getting my Google Maps API key, however, "If you wish to supply your own latitude and longitude, you may enter them above. If you leave these fields blank, the system will attempt to determine a latitude and longitude for you from the entered address." this does not happen. What needs to be set up for this to happen?
Comments
You need to setup geocoding
You need to setup geocoding for each country at admin/settings/location/geocoding then you should be able to get longitude/latitude from an address.
Still not working
I'm using location-6.x-3.1 and I had this problem:
http://drupal.org/node/733438
which I fixed using reply #3.
But still it never auto-generates lat and long.
What's worse, if you enter some data for the two fields, it will never go back to being blank. (In other words, deleting the user-submitted data and resubmitting the location has no effect. The data that was previously there reappears.)
P.S. The site I'm working on is firewalled / inside a corporate network, could this be the problem?
When dealing with maps and locations
When dealing with maps and locations OpenLayers is worth having a look at. It's a much cleaner and more flexible API that integrates better with Drupal, IMHO.