When I use the following code I never get an alert moving in or out of my
vectors? Did I do this wrong?



var layer = new OpenLayers.Layer.Vector( name ); 
        
Map.map2d.addLayer(layer); 

                var eventControl = new OpenLayers.Control.SelectFeature(
                 layer,
                 {
                                 hover: true,
                                 highlightOnly: true,
                                 clickout: false,
                                 toggle: false,
                                 multiple: false,
                                 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-tp5935902p5935902.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

Reply via email to