I have a CCK text area for address and it has a GMap map attached to it like this:

  $form['field_address'][0]['_map'] = array(
    '#type' => 'gmap',
    '#map' => $map['id'],
    '#settings' => $map,
  );

It's set up so you type an address into the text area and it geocodes it and sets the map to the right spot. Bdragon wrote the code for me a while back and it works great -- until I try to move it into a Vertical Tab. :(

I'm trying to tame a rather imposing form ( http://couleeregiononline.com/node/add/listing ) with VT and it works pretty well except the map floats up to the top above the node title field. I've tried setting VT's weight higher than the module that adds the map to the field but that didn't help.

I'm wondering if you have any idea what might be wrong? Unfortunately, I don't know javascript, yet. I asked Bdragon for help but he doesn't know VT and the pointers he gave me were total Greek due to my lack of JS knowledge. So this is a long shot in this queue to see if anyone can help without speaking a foreign language to me. :)

If not, I understand. I'm a maintainer, too, and I know how I'd look at this issue... LOL! But, I thought, who knows, I may get lucky and it's an easy fix. :)

Michelle

Comments

michelle’s picture

Status: Active » Fixed

Ok, so now I feel like a fool. See that line $form['field_address'][0]['_map'] = array(? Well, it helps tons if I put the new fieldset I moved the address into in that line... Doh!

Michelle

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.