[OpenLayers-Dev] Re: setFeature for ModifyFeature control

Fabian Patzke (OL) listensammler at patzi.de
Fri Mar 18 07:34:51 EDT 2011


Hi,
the versions I described with:
  var control = new OpenLayers.Control.ModifyFeature(layer);
  control.selectControl.clickFeature(featureToUse);
also works, but I think it would be nice to have this possibility as a
function at the modifyFeature control. It would also better fit to the
TransformFeature control.

One could use as you did:
  control.selectControl.select(featureToUse);
but than every time you call this you would put the  featureToUse in the
array:
  control.selectControl.layer.selectedFeatures
even if it is already in this array

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/setFeature-for-ModifyFeature-control-tp6184030p6184189.html
Sent from the OpenLayers Dev mailing list archive at Nabble.com.


More information about the Dev mailing list