<?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 — Map projection]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=1008</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1008&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Map projection.]]></description>
		<lastBuildDate>Tue, 08 Jan 2019 18:19:19 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Map projection]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4474#p4474</link>
			<description><![CDATA[<p>Hello.</p><p>For Yandex maps: WGS-84.<br />For the rest: WGS-84 Web Mercator.</p><p>I don&#039;t know how you got your coordinates.<br />So I can not be sure that they are not correct.</p><p>Here is my version of the script and a screenshot of the result.</p><div class="codebox"><pre><code>using UnityEngine;

public class Circle : MonoBehaviour
{
    public float lng, lat;
    public float radius;
    public int segments = 32;

    private void Start()
    {
        Vector2[] points = new Vector2[segments];
        float s = 360f / segments * Mathf.Deg2Rad;

        for (int i = 0; i &lt; segments; i++)
        {
            float x = Mathf.Cos(s * i) * radius + lng;
            float y = Mathf.Sin(s * i) * radius + lat;

            points[i] = new Vector2(x, y);
            OnlineMaps.instance.AddMarker(points[i]);
        }

        OnlineMaps.instance.AddDrawingElement(new OnlineMapsDrawingPoly(points, Color.red));
    }
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Tue, 08 Jan 2019 18:19:19 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4474#p4474</guid>
		</item>
		<item>
			<title><![CDATA[Re: Map projection]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4471#p4471</link>
			<description><![CDATA[<p>Hello</p>]]></description>
			<author><![CDATA[null@example.com (yinyu)]]></author>
			<pubDate>Tue, 08 Jan 2019 14:08:15 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4471#p4471</guid>
		</item>
		<item>
			<title><![CDATA[Map projection]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4468#p4468</link>
			<description><![CDATA[<p>Hello, What projection does the map use by default?<br />I added a series of points near the Arctic and the map was drawn into a regular circle. Shouldn&#039;t it be a stretched ellipse?<br />The North and South Poles should stretch. Should the circles drawn be stretched?<br />Thank you very much。</p><p>List&lt;Vector2&gt; polyList = new List&lt;Vector2&gt;()<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; new Vector2(82.66599f, 81.30697f),<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; new Vector2(74.36659f, 82.58331f),<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; new Vector2(60.97482f, 82.9713f),<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; new Vector2(48.66783f, 82.27274f),<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; new Vector2(42.27214f, 80.82545f),</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; new Vector2(41.33019f, 79.10966f),<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; new Vector2(43.90862f, 77.46705f),<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; new Vector2(48.56174f, 76.1094f),<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; new Vector2(54.38786f, 75.16797f),<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; new Vector2(60.79885f, 74.72003f),</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; new Vector2(67.35206f, 74.79962f),<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; new Vector2(73.63844f, 75.40077f),<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; new Vector2(79.18523f, 76.47713f),<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; new Vector2(83.33164f, 77.93685f),<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; new Vector2(85.03754f, 79.62836f)<br />&nbsp; &nbsp; &nbsp; &nbsp; };</p><p>&nbsp; &nbsp; &nbsp; &nbsp; OnlineMapsDrawingPoly poly = new OnlineMapsDrawingPoly(polyList, Color.red);<br />&nbsp; &nbsp; &nbsp; &nbsp; OnlineMaps.instance.AddDrawingElement(poly);</p>]]></description>
			<author><![CDATA[null@example.com (yinyu)]]></author>
			<pubDate>Tue, 08 Jan 2019 08:32:45 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4468#p4468</guid>
		</item>
	</channel>
</rss>
