<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Infinity Code Forum — OnlineMapsDrawingPoly filled in circle]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=1583</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1583&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in OnlineMapsDrawingPoly filled in circle.]]></description>
		<lastBuildDate>Thu, 13 Aug 2020 09:36:43 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: OnlineMapsDrawingPoly filled in circle]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6563#p6563</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Thu, 13 Aug 2020 09:36:43 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6563#p6563</guid>
		</item>
		<item>
			<title><![CDATA[OnlineMapsDrawingPoly filled in circle]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6562#p6562</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (jarne)]]></author>
			<pubDate>Thu, 13 Aug 2020 08:49:38 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6562#p6562</guid>
		</item>
	</channel>
</rss>
