terra-draw
terra-draw copied to clipboard
Click on the middle point for optimization
Click on the middle point, and the two newly added points can be directly dragged . This can greatly improve the efficiency of editing and drawing polygons ,
When dragging the middle point, two new points are automatically added, and both new points can be directly dragged。
@JamesLMilner I suggest changing the onClick event at the midpoint to be triggered when keydown, rather than when keyup, so that you don't have to click before dragging
Thanks for raising this idea. A feature like this might be possible but requires a bit of thinking about how it works with the wider select mode without making the code harder to maintain. A feature like this would be behind a flag and which developers could opt into by turning it on. I will look into it and see if it's possible, but can't promise anything on time lines.
Thanks for raising this idea. A feature like this might be possible but requires a bit of thinking about how it works with the wider select mode without making the code harder to maintain. A feature like this would be behind a flag and which developers could opt into by turning it on. I will look into it and see if it's possible, but can't promise anything on time lines.
@JamesLMilner, thanks a lot.