yugalatea / gwt-google-apis

Automatically exported from code.google.com/p/gwt-google-apis
0 stars 0 forks source link

After removeOverlay PolygonMouseOutHandler is called with event.getSender().isVisible() == true #247

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Found in Release: 1.0.3

Detailed description:
If a polygon has a mouse out handler, after it is removed from the map with
mapWidget.removeOverlay(polygon) the mouse out handler is called.  This
alone is questionable behavior since the mouse didn't really go outside of
the polygon.  Even worse, event.getSender().isVisible() of the fired event
returns true.  This means that any processing that requires the polygon to
be displayed can corrupt the map (for example, I am setting the fill and
stroke style).  

Workaround:
Add a PolygonRemoveHandler that removes the PolygonMouseOutHandler from the
polygon.  I do not know what to do if you would like to handle the case of
re-adding the polygon since there is no PolygonAddHandler.

Original issue reported on code.google.com by lenza.mc...@gmail.com on 1 Mar 2009 at 5:34

GoogleCodeExporter commented 9 years ago
This sounds like a problem in the underlying Maps API.  The next step would be 
to try
to reproduce this in raw JavaScript, without GWT.

Original comment by galgwt.reviews@gmail.com on 20 Mar 2009 at 9:52

GoogleCodeExporter commented 9 years ago

Original comment by zundel@google.com on 28 May 2010 at 6:15