Hello Luca, no solution yet. Only a workaround: a WMS layer dedicated to labels. It was useful for advanced label stylings you can't have with vector layer labels, such as label background color. alex
2010/11/10 Luca Casagrande <[email protected]>: > > > Alexandre Saunier wrote: >> >> Hello, >> >> I have noticed a weird behaviour with IE8 when using a SelectFeature >> control on polygonal features with labels: click or hover events are >> not correctly detected when the mouse pointer is above a feature >> label. >> >> It can be observed for instance if you add the following code: >> >> var hoverControl = new OpenLayers.Control.SelectFeature( >> vectorLayer, >> { >> autoActivate: true, >> hover: true, >> renderIntent: "temporary" >> } >> ); >> map.addControl(hoverControl); >> >> to this example: >> http://openlayers.org/dev/examples/vector-features-with-text.html >> and create an additional "temporary" renderIntent in the StyleMap >> definition => I have simply duplicated the "default" renderIntent and >> changed the fillColor property. >> >> Then when the mouse pointer is over a feature, the feature color is >> updated, except when the pointer is above the label. Only with IE. OK >> with Firefox or Chrome for instance. >> >> Anyone knows about that issue? >> >> Thanks, >> alex >> _______________________________________________ >> Users mailing list >> [email protected] >> http://lists.osgeo.org/mailman/listinfo/openlayers-users >> >> > Hi! > Same issue, with IE8 only. Have you found any solution? > > Thx > Luca > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/Incorrect-click-hover-event-handling-on-feature-labels-tp5611152p5725583.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/openlayers-users > _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
