sorry if this is a simple question, but I can't test the module out because i don't have an api key yet.
Is it possible for gmap to post a marker based solely on city location data?
What i mean is that I think gmap places markers based on lat/long (but i'm not sure).
I don't want users to have to find out what their lat / long are and then plug those into according fields.
And i don't want them to have to type in their street address (that's too personal for what i want to do).
Instead, i'd like them simply to be able to only have to type in (or use a select menu) a city on their user profile form (or some other form). Then gmap will be smart enough to do a lookup on the city/state to autoinsert the correct data into the lat / long fields. That way a user node can be auto mapped to a gmap marker overlay.
Qs
1) Does this currently happen with this module?
2) If not is there a way to do it?
3) Would the following be possible?... An alternative method would be to allow the user to select their location on the user profile form by clicking or navigating on another gmap popup window. That would autoinput the lat/long fields and city name for those userprofile fields.
thanks much
Comments
Comment #1
mgiffordNot quite a duplicate, but related:
http://drupal.org/node/124560
And yes, would be nice if the docs explained how to place a marker using city/province.
Comment #2
newdru commentedgifford, you state:
Sounds like you know how to do that... Could you explain it?
thanks
Comment #3
mgiffordI'm not a javascript programmer and am not at all experienced with this google api, but looks like it is possible from the docs:
http://www.google.com/apis/maps/documentation/#Geocoding_Structured
Looks like it is possible from the example:
http://www.google.com/apis/maps/documentation/geocoder2.html
And there is a address javascript library which is distributed with the code that looks like it should do quite a lot of this too. I'm just not the right person to piece this all together.
Mike
Comment #4
bdragon commentedMarking as dupe of http://drupal.org/node/131016.