I'm not sure if this is the right place to post this issue and if it should be reported as a bug or a feature request.

I am using cck location fields, views with a relationship and gmap. This is all working very nicely, thanks.

When setting the Views>style>gmap settings gear the field for the GMap macro is a fixed size and I need to include a longer macro.

Any suggestions or help on how would be appreciated.

Thanks,

Izzy

Comments

drew reece’s picture

Hi again izmeez,

The offending line of code seems to be line 150 to 155 in gmap_plugin_style_gmap.inc

$form['macro'] = array(
      '#type' => 'textfield',
      '#title' => t('Macro'),
      '#size' => 1000,
      '#default_value' => $this->options['macro'],
    );

You can alter the #size but keep it reasonable until an admin says it's OK, because the field may have a storage limit in the DB.

I quickly changed the default value to "Am I here" to see if it was the correct field & the gmap settings macro altered.

izmeez’s picture

Drew,

If this is saying it's set at 1,000 character something else is wrong. I was not trying to enter a macro THAT BIG !

But, thanks for trying to sort this out.

Izzy

kvvnn’s picture

I am having the same issue. If I find anything helpful, I will post here.

Cheers guys.

bartezz’s picture

$form['macro'] = array(
      '#type' => 'textfield',
      '#title' => t('Macro'),
      '#size' => 1000,
      '#maxlength' => 1000,
      '#default_value' => $this->options['macro'],
    );
michelle’s picture

Status: Active » Closed (duplicate)