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.
| Comment | File | Size | Author |
|---|---|---|---|
| gmapviewsnewline.diff | 832 bytes | geodaniel |
Comments
Comment #1
geodaniel commentedfixed in 4.7 branch and in HEAD
Comment #2
hickory commentedWouldn't it be easier to use strtr, like in gmap_location_module, ie:
'label' => strtr($marker_label,"'\n\r",'" '),Comment #3
hickory commentedAlso your patch doesn't catch
\rComment #4
geodaniel commentedGood 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.
Comment #5
geodaniel commentedI've updated 4.7 and HEAD with hickory's suggested improvements to the previous patch.
Comment #6
(not verified) commented