Newline characters introduced by theming of views fields cause Javascript to break and therefor the map doesn't display. Sorry, I should have taken care of this in #89467, but I've attached a patch to strip these out as well.

CommentFileSizeAuthor
gmapviewsnewline.diff832 bytesgeodaniel

Comments

geodaniel’s picture

Status: Needs review » Fixed

fixed in 4.7 branch and in HEAD

hickory’s picture

Wouldn't it be easier to use strtr, like in gmap_location_module, ie:
'label' => strtr($marker_label,"'\n\r",'" '),

hickory’s picture

Status: Fixed » Needs work

Also your patch doesn't catch \r

geodaniel’s picture

Good points hickory - I hadn't spotted that line in gmap_location module, but it'd be good to stay consistent with that. I'll update the fix.

geodaniel’s picture

Status: Needs work » Fixed

I've updated 4.7 and HEAD with hickory's suggested improvements to the previous patch.

Anonymous’s picture

Status: Fixed » Closed (fixed)