<?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 — Is possible to draw more precision line in map?]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=250</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=250&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Is possible to draw more precision line in map?.]]></description>
		<lastBuildDate>Mon, 15 Aug 2016 23:13:18 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Is possible to draw more precision line in map?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=1115#p1115</link>
			<description><![CDATA[<p>Hello.</p><p>We added the ability to use Drawing API in double precision.<br />Please update Online Maps through the built-in update to the latest beta version.</p><p>Now you can use: Vector2, float, double.<br />If values float or double, the values should go in pairs(longitude, latitude).</p><p>Examples:<br /></p><div class="codebox"><pre><code>double[] line = 
{
    3, 3, // lng, lat
    5, 3,
    4, 4,
    9.3, 6.5
};
api.AddDrawingElement(new OnlineMapsDrawingLine(line, Color.green, 5));</code></pre></div><p>or<br /></p><div class="codebox"><pre><code>float[] poly =
{
    0, 0, // lng, lat
    1, 0,
    2, 2,
    0, 1
};
api.AddDrawingElement(new OnlineMapsDrawingPoly(poly, Color.red, 1, new Color(1, 1, 1, 0.5f)));</code></pre></div><p>or (old way)<br /></p><div class="codebox"><pre><code>List&lt;Vector2&gt; line = new List&lt;Vector2&gt;
{
    new Vector2(3, 3),
    new Vector2(5, 3),
    new Vector2(4, 4),
    new Vector2(9.3f, 6.5f)
};
api.AddDrawingElement(new OnlineMapsDrawingLine(line, Color.green, 5));</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Mon, 15 Aug 2016 23:13:18 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=1115#p1115</guid>
		</item>
		<item>
			<title><![CDATA[Is possible to draw more precision line in map?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=1107#p1107</link>
			<description><![CDATA[<p>hello, <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;I used &quot; draw API&quot; for my map and I found the script was written by float.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Is possible to make line more precision in my map?<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;How can I change in double?</p>]]></description>
			<author><![CDATA[null@example.com (yunjenwang37)]]></author>
			<pubDate>Mon, 15 Aug 2016 02:25:21 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=1107#p1107</guid>
		</item>
	</channel>
</rss>
