Hi all,
I think it would be nice to have a setFeature function at the ModifyFeature
control just like the the one from the TransformFeature control. In my
application I do it like this:

  var featureToUse = new OpenLayers.Feature.Vector();
  
  var control = new OpenLayers.Control.ModifyFeature(layer, {
    mode: OpenLayers.Control.ModifyFeature.RESHAPE
  });
  
  control.selectControl.clickFeature(featureToUse);

At first I used it like this:
  control.selectFeatur(featureToUse);
But then the style of the feature won't be changed to the defined
"selectStyle" of the layer.
If you think that would be a nice feature to set up for the ModifyFeature
control, I would create a ticket and patch.

PS: On one of my other ticket someone made up the question if there already
exists a ICLA of me. I send it once via mail but maybe it got lost
somewhere. Where do I have to send it to?

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/setFeature-for-ModifyFeature-control-tp6184030p6184030.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

Reply via email to