[OpenLayers-Trac] [OpenLayers] #3291: Refresh Vector Layer changing featureType

OpenLayers trac-20090302 at openlayers.org
Wed May 4 09:49:43 EDT 2011


#3291: Refresh  Vector Layer changing featureType
--------------------------+-------------------------------------------------
 Reporter:  user999       |       Owner:  tschaub     
     Type:  bug           |      Status:  new         
 Priority:  minor         |   Milestone:  2.12 Release
Component:  Protocol.WFS  |     Version:  SVN         
 Keywords:  featureType   |       State:              
--------------------------+-------------------------------------------------
 Hi,

 I have to refresh a Vector Layer added to my map. In particular, I want to
 change the featureType of that Vector Layer (WFS) so that I can switch the
 different layers hosted on Geoserver. To do this task, I try a lot of case
 and the only one that works is the following:

 function updt() {

         map.layers[2].protocol.setFeatureType("3itemsview");

         map.layers[2].refresh({featureType: "3itemsview" });

         }

 Why I must use both that operation? If I use only one comand or the first
 one and
  map.layers[2].refresh({force: true});
 it doesn't work.
 Is not logic set the same field twice.

 Thanks.
 Best reguard,
 Yuri

-- 
Ticket URL: <http://trac.openlayers.org/ticket/3291>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list