On Mon, Mar 21, 2011 at 8:24 AM, David Alda Fernandez de Lezea
<[email protected]> wrote:
> Eric,
>
> Thanks for your response. I've done something like this:
>
> initialize: function(layer, options) {
>
> ...
>        this.EVENT_TYPES.push("featureselected");

Remove this.


> ...
>
> this.events.on({
>        featureselected: function(evt) {
>                var myEvt = evt;
>        }
> });
>

Do this instead:

layer.events.on({
    featureselected: function(evt) {
        var feature = evt.feature;
    }
});



-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : [email protected]
http://www.camptocamp.com
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to