Hi,
I'm just asking about this problem because I can't think of anything else.
Let me explain.
I have a map with 2 layers, polygons and points, just like attached picture 01.
What I need to do is to display a line and a text to identify each point inside a polygon, just like picture 02.
The problem is that I need to know in which direction and angle I should draw the line and the text. They must be drawn in the nearest outside region of the polygon.
That's why I can't make it work.
I tried to scan the region near to the point using the circle equation and rising the radius to find the nearest point in the outside region (x = a * r + cos t, y = b * r + sin t) and it works (picture 03), but takes too long (a LOT of steps in loop) to consult the server using RelationWithin.
Maybe there is a way to do all the consult stuff on the server side... Or a fastest way to do that...
I really need help here.
Thanks a lot.