[OpenLayers-Users] click/hover select controls on one layer

Robert Marianski rmarianski at openplans.org
Thu Feb 18 11:32:22 EST 2010


I want to be able to handle both hover and click events on features in a
vector layer. I created two select controls, one with hover set to true,
added them to the layer, and activated them.

What I'm seeing is that the click select control doesn't receive any of
featured selected events, but the hover select control does receive the
hover events. If I don't add the hover select control but only the click
select control, then I do receive all the click events.

Am I approaching this the wrong way? Any workarounds? I'm using the
nightly openlayers build from 2/17/10.

Thanks,
Robert



More information about the Users mailing list