Topic: OnlineMapsDrawingPoly filled in circle

Hi, I'm trying to draw a circle where the center is filled.
So far all I've been able to achieve is just the border of the circle.

I tried this example: http://infinity-code.com/atlas/online-m … ample.html
But it doesn't seem to draw the transparent background that it says it does.

The exact code I tried is:

        List<Vector2> poly = new List<Vector2>
            {
                //Geographic coordinates
                new Vector2(0, 0),
                new Vector2(1, 0),
                new Vector2(2, 2),
                new Vector2(0, 1)
            };

        // Draw filled transparent poly
        OnlineMapsDrawingElementManager.AddItem(new OnlineMapsDrawingPoly(poly, Color.red, 1, new Color(1, 0 ,0, 1f)));

Am I doing something wrong? Are there extra stepts I forget?

Re: OnlineMapsDrawingPoly filled in circle

Hello.

This is a known issue, here is a quote from the documentation:

Drawing API - polygon has no fill in "Tileset"

This problem is related to the very difficult polygon triangulation.
Most likely, this problem will never be solved.

How to work around the problem:
1. OnlineMapsDrawingElement.checkMapBoundaries = false.
This mode works correctly only if the lines do not intersect.
2. Use "Draw to Texture" mode.
3. (Not recommended) Use Drawing as Overlay.

Kind Regards,
Infinity Code Team.

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