using the 4.6 version (I will update eventually!) and chucking the pages through the W3C validator it appears there's another error in addition to some posted here. It's not critical or showstopping but I'd really like my W3C icon. :-)
It complains that <style type="text/css"> is not allowed in that area. Looking at the surrounding source and given the line number it looks like the code below is making it error:
$outtext='<div id="'.$gmap['id'].'" style="'.$style.'"></div>
<style type="text/css">
v\:* {
behavior:url(#default#VML);
}
</style>So I did the normal thing and remove the style opening and closing tags. The map seemed to work okay but the following was displayed underneath it in plain text which isn't clever of me:
v\:* {
behavior:url(#default#VML);
}I switched the style tags back and all is well but the xhtml error still remains.
Can someone please point me in the right direction in what to do about this?
Comments
Comment #1
zywieco commentedIf you want to show polylines on your map (like the lines used by Google Maps to show driving directions), you need to include the VML namespace and some CSS code in your XHTML document, to make everything work properly in IE, that's what this code does:
style tags should go in the head section of your html file.
You could move this to an external style sheet and link to it in the head of your html file.
(can't remember if the css will validate though)
If you don't draw lines, you can leave this code out.
Comment #2
webgeer commentedIt should be noted that the current 4.7/cvs version has this in an external css file.
This comes directly from http://www.google.com/apis/maps/documentation/#XHTML_and_VML
I believe that this is actually an intentional error (using the *) recommended by Google to cause FF to ignore this style and IE to use it.
I am closing this issue as it isn't a gmap.module issue