Garthanos / geoxml

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

background color reset on mouseout of polygons/lines in sidebar does not work anymore #42

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When hovering over items in the sidebar, item background changes to light blue. 
On mouseover, background changes to none again. 
This does NOT work (anymore) for line items: the background color stays, also 
after hovering out. 

On placemark items, it works okay: on mouseout, background changes to white 
again

You can see this issue in this test file:

http://www.joli-ecotours.com/maptestforgeoxml.htm

Original issue reported on code.google.com by remco@remcokalf.nl on 7 Jul 2010 at 4:09

GoogleCodeExporter commented 9 years ago
This only happens when quiet=true is set.
Then, on hover of line elements, there is a js error "this.mb = null"

Original comment by remco@remcokalf.nl on 14 Jul 2010 at 2:36

GoogleCodeExporter commented 9 years ago
I found the error. 

The 'quiet' statement should also be added to the function 
MessageBox.prototype.hideMess.

Like this:

MessageBox.prototype.hideMess = function(){
    if(this.paren.quiet){
        return;
        }

On mouseout this function is triggered, and produces an error when the variable 
mb is not set.

Original comment by remco@remcokalf.nl on 14 Jul 2010 at 2:52

GoogleCodeExporter commented 9 years ago
fixed thanks.

Original comment by lanceala...@gmail.com on 24 Aug 2011 at 12:31