google-code-export / geoxml

Automatically exported from code.google.com/p/geoxml
1 stars 1 forks source link

Error on load if bar isn't present #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a new GeoXML layer with a URL and a null sidebar parameter
(sidebarid:null) I was using http://www.dyasdesigns.com/geoxml/usa.xml
2. Try to load it.

What is the expected output? What do you see instead?
I get a javascript error. 'bar is null' bar.style.display=""; on line 2364.
This makes sense because I don't want a sidebar on my map, and it's trying
to find one. I see in other places in the code it checks for the existence
of the sidebar first. I was able to fix this by replacing line 2364 with:
if(bar){bar.style.display="";}

What version of the product are you using? On what operating system?
geoxml24FEB2009, Firefox, Windows XP

Original issue reported on code.google.com by bob.badd...@gmail.com on 4 Mar 2009 at 10:23

GoogleCodeExporter commented 9 years ago
Thanks.. I fixed and updated

Original comment by lanceala...@gmail.com on 6 Mar 2009 at 4:43