I would like to refresh my vector layer (WFS protocol) and change the
FeatureType on the air.

I tried:

*map.layers[1].protocol.setFeatureType("newLayer");
//map.layers[1].refresh({featureType: "newLayer" });
map.layers[1].refresh({force: true});*

but nothing changed. I see in firebug that old featureType is called again,
also nothing shown on the map.

Is there any another way to do that ?
I don't need to change any other property. just featureType.



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Refresh-Vector-Layer-changing-featureType-tp5005454.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