I am new for Open layer and using open layer 3.I draw square on map using 4 coordinates. but now I want to edit that square by stretching any of one point but make sure it should not change shape of square(rectangle) to other shape.
Right now, I am using ol.interaction.Modify but it's modify only for Point , Linestring and Polygon .
How would I extent this to support modification of circle and square(rectangle)?
It depends what do you mean by modifying square. You can modify a rectangle with the modify.interaction
but you can not reshape it. I guess you mean reshape and not just modify. If this is your case , ol3 does not support it out of the box. But here there is an extension to do the reshape for every possible geometry (rectangle, polygon etc.) I am not sure whether it supports circles.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.