[OpenLayers-Users] Stop modifyFeature from re-shaping features?
Eric Lemoine
eric.c2c at gmail.com
Sun Mar 16 09:10:37 EDT 2008
On Sun, Mar 16, 2008 at 10:19 AM, ChrisWebster <cwebster at tyadar.co.uk> wrote:
>
> I have a simple map with a simple polygon layer. I want the user to be able
> to select, rotate and drag polygons in this layer, but I don't want the user
> to be able to add new polygons or re-shape existing ones. I've put a
> modifyFeature control on the map, which allows me to mess about with the
> polygon features, but I can't find any way to disable the re-shape or draw
> modes successfully. It seems you can switch off some modifyFeature modes,
> but not these.
>
> Any ideas how to get around this?
To complement Stephen's response:
Using trunk you can set the mode of the modify feature control. See
this page's source
<http://openlayers.org/dev/examples/modify-feature.html> and the API
doc at <http://dev.openlayers.org/apidocs/files/OpenLayers/Control/ModifyFeature-js.html>.
Cheers,
--
Eric
More information about the Users
mailing list