Thx for the reply.
Well I didnt really want any highlight stuff. Was not entirely sure what
highlightOnly meant, but I guess that makes scene now. So I removed that
line. I just need the over out move click events on all my feature on that
layer. Still not working.
here is what I have now
var eventControl = new OpenLayers.Control.SelectFeature(
layer,
{
hover: true,
//highlightOnly: true,
clickout: false,
toggle: false,
multiple: false,
eventListeners:
{
overFeature: function(feature) {alert("over");},
outFeature: function(feature)
{alert("out");}
}
});
Map.map2d.addControl(eventControl);
eventControl.activate();
--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/SelectFeature-control-not-working-tp5935902p5936106.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