On Sun, Mar 16, 2008 at 10:19 AM, ChrisWebster <[EMAIL PROTECTED]> 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 _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
