[OpenLayers-Users] Issue with TransformFeature control - allowing features to be resized to lines and point, then getting stuck

Jordan Brown jordanb at sunrunhome.com
Sun Jul 17 19:22:14 EDT 2011


I'm running into a strange issue with the TransformFeature control. When I resize a feature vertically or horizontally and the left edge overlaps with the right edge, or the top edge overlaps with the bottom edge, the feature gets "stuck", and becomes either a horizontal or a vertical line. Once the feature is in this stuck state, it is then possible to resize it into a point. Once in either of these states, it is not possible to resize it any further. 

This behavior does not seem to occur on the OpenLayers example page - resizing vertically or horizontally such that the edges cross over each other does not cause the feature to get stuck in that size.

Has anyone one else run into this? Is there a way to set a minimum size for a feature or geometry so that you cannot resize it past a certain width/height? 

Thanks,
Jordan


More information about the Users mailing list