Topic: Grabbing the overlap points of a polygon

Hi, I wanted to know if there are any method to get the overlap points of your polygon? I am trying to make a marker2D randomizer within a polygon (not outside of it) but can't seem to find your code that tells the boundaries of the polygon.

Re: Grabbing the overlap points of a polygon

Hello.

1. Find the boundaries of the polygon. Online Maps doesn't have a method for this, but it's a pretty simple thing, and I think you can implement it without any problems.
2. Get a random point inside the bounds.
3. Use OnlineMapsUtils.IsPointInPolygon to check that the point is inside the polygon. If outside, go to step 2.

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

Re: Grabbing the overlap points of a polygon

Thank you for that, the one that I've been looking for and was asking is actually step 3