I created a Gmap macro but when I tried to paste the text into the views macro field it was cut off before the end. I found the code for the field and even though it's set to 1000 characters the macro, which I doubt comes close to that amount didn't fit. I needed customized settings for my map so I had to change the form item from 'textfield' to 'textarea' to match what's used in the macro creation page. Now when I paste the macro it fits fine.

CommentFileSizeAuthor
#5 gmap-HEAD-559128.patch787 bytestwod

Comments

willhowlett’s picture

Hi, I've run into this problem as well. Is anyone able to let me know where exactly I need to change the form item type from textfield to textarea?

willhowlett’s picture

Worked it out. If anyone else comes across this problem the code to change is in modules -> gmap -> gmap_plugin_style_gmap.inc

On line 157 change 'textfield' to 'textarea'

michelle’s picture

Status: Active » Needs review

Marked #405020: Gmap views macro text field input is limited and #499136: Gmap views2 style setting field for macro too short duplicates of this.

Not technically a patch but it's a solution so marking as needs review.

Michelle

izmeez’s picture

subscribing

twod’s picture

StatusFileSize
new787 bytes

#size isn't used on textareas, but #rows and #cols are so I just added some values which worked for me.

rooby’s picture

Thanks for the patch. I'm not at my normal computer so I can't test & commit but I will look soon.

capellic’s picture

Status: Needs review » Reviewed & tested by the community

I have applied the patch to my install and can verify that it works. Thanks, @TwoD.

rooby’s picture

Status: Reviewed & tested by the community » Fixed

Committed to D6 & HEAD branches

Status: Fixed » Closed (fixed)

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