If you can try to not rely of PHP line breaks. Put in some <br />
's since you are passing HTML to the content anyways.
I too am having a similar issue, however, my HTML is properly formatted... I'll update this answer once I can get my issue figured out :), but for now, do a str_replace
and replace all the PHP linebreaks \r
& \n
with a <br />
I have fixed my own issue, and wanted to share what I did with you.
function FormatMapContent($str){
return str_replace(array('.', "\n", "\t", "\r"), '', $str);
}
Wrap your InfoWindow
content with that, and you should be good to go.
HTH ~Kevin