Hi All,

I've been wrestling with the FramedCloud popup and displaying the
content using HTML tables.  I cannot get OpenLayers to display the table
properly in the popup.  Anything I put in the style attribute (e.g.
background-color) works fine, every other tag seems to be ignored.  Is
this a bug or the intended behavior?

Here is my code (finalTable is actually dynamically generated):

finalTable = '<br><table border="1" bordercolor="#000000"
style="background-color:#E8E8E8" cellspacing="0"
cellpadding="3"><tr><td><b>Type</b></td><td>Commander</td><tr></table>';

popup = new OpenLayers.Popup.FramedCloud(
                "featurePopup",
                feature.geometry.getBounds().getCenterLonLat(),
                null,
                finalTable, // html with table
                null, 
                true, 
                onPopupClose
        );

Thanks!

-Adam

_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to