<?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 — Drawing multiple lines with Google API]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=154</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=154&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Drawing multiple lines with Google API.]]></description>
		<lastBuildDate>Fri, 13 May 2016 20:51:34 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Drawing multiple lines with Google API]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=702#p702</link>
			<description><![CDATA[<p>Hello.</p><p>In your case, you have 50 identical lines.<br />Move «List &lt;Vector2&gt; points = new List &lt;Vector2&gt; ();» inside the foreach.</p><div class="codebox"><pre><code>foreach (SentimentMarker sentimentMarker in _sentimentMarkers)
{
    List&lt;Vector2&gt; points = new List&lt;Vector2&gt;();</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Fri, 13 May 2016 20:51:34 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=702#p702</guid>
		</item>
		<item>
			<title><![CDATA[Drawing multiple lines with Google API]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=701#p701</link>
			<description><![CDATA[<p>Hey there,</p><p>Here&#039;s some sample code of mine. I&#039;m only seeing only line shown on my map whereas there should be 50.</p><p>Cheers,</p><p>&nbsp; &nbsp; private void DrawPersonalLinks()<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; List&lt;Vector2&gt; points = new List&lt;Vector2&gt;();</p><p>&nbsp; &nbsp; &nbsp; &nbsp; foreach (SentimentMarker sentimentMarker in _sentimentMarkers)<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; points.Clear();<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; points.Add(_yourLocationStaticMapMarker.position);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; points.Add(sentimentMarker.position);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OnlineMapsDrawingLine line = new OnlineMapsDrawingLine(points, Color.white);</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Draw the line route on the map.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OnlineMaps.instance.AddDrawingElement(line);<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; }</p>]]></description>
			<author><![CDATA[null@example.com (pgeorges-dpt)]]></author>
			<pubDate>Fri, 13 May 2016 19:50:50 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=701#p701</guid>
		</item>
	</channel>
</rss>
