[OpenLayers-Users] Refresh Vector Layer changing featureType
Diego M.
oo_O2_oo at hotmail.com
Mon Oct 1 00:18:18 PDT 2012
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.
More information about the Users
mailing list