[OpenLayers-Users] New SelectFeature Control problems?

Heidt, Christopher M. CHRISTOPHER.M.HEIDT at saic.com
Wed Apr 1 08:39:04 EDT 2009


I update my openlayers svn checkout daily, but when i did it yesterday i
noticed that when i switch between my
SelectFeature controls the features not in the layer associated to that
control disapear!
 
They used to just bring that layer to the front and i could still see
all my other features behind it.
 
 
this is my code. it hasnt changed in months.
 
//Panel
  _sensorSelectControl = new
OpenLayers.Control.SelectFeature(_sensorLayer,{
   title: '[Selection Tool] Sensors',
   displayClass: 'Control_SelectSensors_',
   onSelect: onSensorSelect
  });
  _featureSelectControl = new
OpenLayers.Control.SelectFeature(_featureLayer,{
   title:'[Selection Tool] Features of Interest',
   displayClass: 'Control_SelectFeatures_',
   onSelect: onFeatureSelect
  });
  var panel = new
OpenLayers.Control.Panel({defaultControl:_sensorSelectControl});
  panel.addControls([
   _sensorSelectControl,
   _featureSelectControl
  ]);
  _map.addControl(panel);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090401/c4e204f8/attachment.html


More information about the Users mailing list