<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — OnlineMapsDrawingPoly filled in circle]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1583&amp;type=atom" />
	<updated>2020-08-13T09:36:43Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1583</id>
		<entry>
			<title type="html"><![CDATA[Re: OnlineMapsDrawingPoly filled in circle]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6563#p6563" />
			<content type="html"><![CDATA[<p>Hello.</p><p>This is a known issue, here is a quote from the documentation:</p><div class="quotebox"><blockquote><p>Drawing API - polygon has no fill in &quot;Tileset&quot;</p><p>This problem is related to the very difficult polygon triangulation. <br />Most likely, this problem will never be solved.</p><p>How to work around the problem:<br />1. OnlineMapsDrawingElement.checkMapBoundaries = false.<br />This mode works correctly only if the lines do not intersect.<br />2. Use &quot;Draw to Texture&quot; mode.<br />3. (Not recommended) Use Drawing as Overlay.</p></blockquote></div>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2020-08-13T09:36:43Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6563#p6563</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[OnlineMapsDrawingPoly filled in circle]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6562#p6562" />
			<content type="html"><![CDATA[<p>Hi, I&#039;m trying to draw a circle where the center is filled.<br />So far all I&#039;ve been able to achieve is just the border of the circle.</p><p>I tried this example: <a href="http://infinity-code.com/atlas/online-maps/pages/DrawingAPI_Example.html">http://infinity-code.com/atlas/online-m … ample.html</a><br />But it doesn&#039;t seem to draw the transparent background that it says it does.</p><p>The exact code I tried is: <br /></p><div class="codebox"><pre><code>        List&lt;Vector2&gt; poly = new List&lt;Vector2&gt;
            {
                //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)));</code></pre></div><p>Am I doing something wrong? Are there extra stepts I forget?</p>]]></content>
			<author>
				<name><![CDATA[jarne]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1355</uri>
			</author>
			<updated>2020-08-13T08:49:38Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6562#p6562</id>
		</entry>
</feed>
