<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Is possible to draw more precision line in map?]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=250&amp;type=atom" />
	<updated>2016-08-15T23:13:18Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=250</id>
		<entry>
			<title type="html"><![CDATA[Re: Is possible to draw more precision line in map?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1115#p1115" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2016-08-15T23:13:18Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1115#p1115</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Is possible to draw more precision line in map?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=1107#p1107" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[yunjenwang37]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=214</uri>
			</author>
			<updated>2016-08-15T02:25:21Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=1107#p1107</id>
		</entry>
</feed>
