Hi all.

If I understood documentation right, "features" property in GetFeature
Control should fill an object with selected features. I don't know why, but
I get nothing:

map.someobject = {};

map.someevent.somelayer = new OpenLayers.Control.GetFeature({
                                                protocol: 
OpenLayers.Protocol.WFS.fromWMSLayer(map.somelayer,{
                                                        geometryName: geometry,
                                                        srsName: "EPSG:900913"
                                                        }),
                                                        hover: false,
                                                        features:
map.someobject
                                                });
                                                                        
                                                
map.someevent.somelayer.events.register("featureselected", this,
function(e) {
                                                console.log(e.feature);
                                                console.log(map.someobject);
                                                });

When I click on layer, I see in console log e.feature, and it's ok, but
map.someobject is an empty object. What am I doing wrong here ?
-- 
View this message in context: 
http://n2.nabble.com/GetFeatures-features-property-tp4023776p4023776.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users

Reply via email to