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. _______________________________________________ Dev mailing list d...@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-dev