theCrag / website

theCrag.com: Add your voice and help guide the development of the world's largest collaborative rock climbing & bouldering platform
https://www.thecrag.com/
111 stars 8 forks source link

Automatic drawing of area map - convex hull #3851

Open killakalle opened 3 years ago

killakalle commented 3 years ago

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 image

There is a somewhat related discussion here: https://github.com/theCrag/website/issues/651

What you expected:

rouletout commented 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...

killakalle commented 3 years ago

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.