[OpenLayers-Users] Modifying existing feature selecting it by
code and then modify and save
Andreas Hocevar
ahocevar at opengeo.org
Mon Aug 10 08:43:04 EDT 2009
Jani Tiainen wrote:
> I'm trying to achieve "select by code" and "start modify" functionality
> to my OL webapp.
>
You may want to have a look at the new standalone option of the
ModifyFeature control (in OpenLayers trunk). If set to true, you can just do
modifyControl.selectFeature(yourFeature);
and you can start editing the feature.
Regards,
Andreas.
> I've form that user selects on feature to be editable, clicks "edit" and
> then OL vector layer should be in "edit mode". When done editing changes
> are just saved with simply clicking "save" button on a same form.
>
> I haven't been succesful with modifying existing tools. It seems that
> they require always that feature is selected from vector layer (with
> mouse) before any modification happen and then modification ends by
> clicking outside of element.
>
> Is there simple way to achieve something I'm looking for or do I need to
> develop set of own tools to get wanted functionality?
>
>
--
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.
More information about the Users
mailing list