<?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 — geojson data layer over map]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=535</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=535&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in geojson data layer over map.]]></description>
		<lastBuildDate>Fri, 12 May 2017 00:16:44 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: geojson data layer over map]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=2335#p2335</link>
			<description><![CDATA[<p>thank you for your help! that worked a treat</p>]]></description>
			<author><![CDATA[null@example.com (stiffy89)]]></author>
			<pubDate>Fri, 12 May 2017 00:16:44 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=2335#p2335</guid>
		</item>
		<item>
			<title><![CDATA[Re: geojson data layer over map]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=2327#p2327</link>
			<description><![CDATA[<p>Hello.</p><p>Example:<br /></p><div class="codebox"><pre><code>using System;
using System.Collections.Generic;
using UnityEngine;

public class GeoJSONExample : MonoBehaviour
{
    private void Start()
    {
        OnlineMapsUtils.GetWWW(&quot;https://storage.googleapis.com/mapsdevsite/json/google.json&quot;).OnComplete += OnComplete;
    }

    private void OnComplete(OnlineMapsWWW www)
    {
        OnlineMapsJSONItem json = OnlineMapsJSON.Parse(www.text);
        OnlineMapsJSONItem geometries = json[&quot;features/*/geometry/coordinates&quot;];
        foreach (OnlineMapsJSONItem geometry in geometries)
        {
            List&lt;double&gt; points = new List&lt;double&gt;();
            foreach (OnlineMapsJSONItem geometryPoints in geometry)
            {
                foreach (OnlineMapsJSONItem point in geometryPoints)
                {
                    points.Add(point[0].Value&lt;double&gt;());
                    points.Add(point[1].Value&lt;double&gt;());
                }
            }
            OnlineMapsDrawingPoly poly = new OnlineMapsDrawingPoly(points, Color.red);
            OnlineMaps.instance.AddDrawingElement(poly);
        }
    }
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Mon, 08 May 2017 23:49:35 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=2327#p2327</guid>
		</item>
		<item>
			<title><![CDATA[geojson data layer over map]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=2324#p2324</link>
			<description><![CDATA[<p>Hey guys,</p><p>Im new to unity and to Onlinemaps so im a little unsure with this question but i was wondering if there is a way to import geojson data to overlay the map? Similar to the data layer within google javascript maps, ive posted a link below</p><p><a href="https://developers.google.com/maps/documentation/javascript/datalayer">https://developers.google.com/maps/docu … /datalayer</a></p><p>if anyone is able to help me with this topic, id really appreciate it!</p><p>Regards</p>]]></description>
			<author><![CDATA[null@example.com (stiffy89)]]></author>
			<pubDate>Mon, 08 May 2017 11:13:29 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=2324#p2324</guid>
		</item>
	</channel>
</rss>
