So is it possible for me to be able to put a GMAP let's say on the registration form and have a group of fields that are related to a users address that when the user starts typing their address and moves on to the next field the GMAP does a geocode search by address string and refreshes the map to the retrieved location???

I have achieved this outside of druple using the google maps api, but I am unsure as to how I can achieve this inside drupal using this module. Please note that I do not want to refresh the page, I simply would like to refresh the map.

Comments

bdragon’s picture

Yeah.

If you have js/address.js included, you can use the geocode_pan and geocode_panzoom events.

Drupal.gmap.getMap('themap').change('geocode_panzoom', -1, $('#addressfield').val());

or similar.

tanoshimi’s picture

I'm interested in this too but I don't quite understand BDragon's snippet - should the call to this javascript function be placed in the node via drupal_add_js, or in the node template file, or somewhere else... can anyone elaborate a bit further please? thanks.

fatfish’s picture

This Improve UI for entering and geocoding of locations should gives a clue.
http://drupal.org/node/44795

ultimike’s picture

I think this is the correct URL for the "Improve UI for entering and geocoding of locations" thread...

http://drupal.org/node/165040

-mike

rooby’s picture

Status: Active » Closed (won't fix)

Drupal 5 is no longer supported.

If this issue affects drupal 6 or 7 please look for an existing issue for that version or else update this issue accordingly.