Re: Events in OpenLayers.Layer.Vector

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: Events in OpenLayers.Layer.Vector

maurotello
Si claro busca en los eventos de un feature (events in feature) tenes varios, unos de ellos es el que decis.. 

2012/10/31 Baron [via OSGeo.org] <[hidden email]>
Hi all,

Is there something like onMouseOver() in OpenLayers.Layer.Vector?
I just found 'featureselected' which is like onClick().
 


If you reply to this email, your message will be added to the discussion below:
http://osgeo-org.1560.n6.nabble.com/Events-in-OpenLayers-Layer-Vector-tp5012424.html
To start a new topic under OpenLayers Users, email [hidden email]
To unsubscribe from OpenLayers Users, click here.
NAML



--
Mauro Tello
Programador - Desarrollos Webs
[hidden email]
02920 - 1553 8998
Viedma, Río Negro
Patagonia Argentina

Reply | Threaded
Open this post in threaded view
|

Re: Events in OpenLayers.Layer.Vector

Steffen G
Try the HighlightFeature:

var c = new OpenLayers.Control.HighlightFeature({
            layer: _lyr, // your layer object
            displayPopup: false,
            style:{fillColor: "#000000", fillOpacity: 0.25, strokeColor : "green", strokeWidth : 4 }
});

oMap.addControl(c);

Greetings
Steffen