Hi Andreas I was just going to send a follow up post. It's been fixed.
This is a bit of insights.. Background: We have two tabs, fist one shows up a static map image, another shows the OL map. To achieve these tab navigations, we needed to add "display:none" by javascript to hide one of the containers. Issue: As the second tab contained OL map and the tab container defaults to display:none when loading, width and height assigned to map div was getting removed and throwing an error. So we did: Create a function to makeMap then only triggers it when the second tab was clicked. Thanks as always for your support. takako -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Andreas Hocevar Sent: 26 January 2012 12:06 To: Takako Tucker Cc: [email protected] Subject: Re: [OpenLayers-Users] SVG related error Hi, can you post a minimal example map that produces these errors? Thanks, Andreas. On Tue, Jan 24, 2012 at 6:24 PM, Takako Tucker <[email protected]> wrote: > Hello, > > I've got .map in my html and that's got width and height. > The map shows up fine, but throws these errors: > > > Unexpected value NaN parsing width attribute. > Unexpected value NaN parsing height attribute. > Unexpected value 0 0 NaN NaN parsing viewBox attribute. > > > I had a look at the code in Firebug and looks like this line is > causing these errors > > <svg id="OpenLayers.Layer.Vector_27_svgRoot" width="NaN" height="NaN" > viewBox="0 0 NaN NaN"/> > > Does anyone know why it's happening? > > Thanks > > Takako > > > > http://www.bbc.co.uk > This e-mail (and any attachments) is confidential and may contain > personal views which are not the views of the BBC unless specifically stated. > If you have received it in error, please delete it from your system. > Do not use, copy or disclose the information in any way nor act in > reliance on it and notify the sender immediately. > Please note that the BBC monitors e-mails sent or received. > Further communication will signify your consent to this. > > _______________________________________________ > Users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
