Open killakalle opened 3 years ago
As you say, this would be a gimmick but also one with risk. The parent could eg include parking or more aspects of a crag that are actually not drawn asnfeatures on theCrag and thus wouldn't be considered by the automatic feature. We still leave this open as an idea to consider...
I see this just as a convenience feature. While editing an area location, you could "auto-draw" the location boundaries based on its children. If an important point, e.g. a parking, was not included but should be included. You would just manually edit the auto-drawn polygon to include that point.
What happened? I think it would be really cool if theCrag could automatically draw the convex hull of an area around its children.
Example: You locate sectors manually on the map. Then on the area node above the sectors, you can just click "auto-locate" and it automatically draws the convex hull of the location around all of the children locations.
This would be useful when you add new sectors or areas and then have to expand the parent node location manually.
For more information see http://www.ams.sunysb.edu/~jsbm/courses/345/13/lecture-convex-hulls-Chap2-devadoss-orourke.pdf
There is a somewhat related discussion here: https://github.com/theCrag/website/issues/651
What you expected: