<?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 — Draw graticules]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=988</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=988&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Draw graticules.]]></description>
		<lastBuildDate>Tue, 25 Dec 2018 10:36:30 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Draw graticules]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4435#p4435</link>
			<description><![CDATA[<p>Thanks, I&#039;ll try another way</p><div class="quotebox"><cite>Alex Vertax wrote:</cite><blockquote><p>You are trying to draw some kind of grid, right?</p><p>There are a lot of problems in your script:<br />1. Drawing API is not designed for this purpose. <br />It is much better to use overlay here, or to limit the drawing area by viewing area.</p><p>2. You will have a different distance between the horizontal lines, and they will not be horizontal at all. <br />I do not know, maybe so planned, but it looks suspicious.</p><p>3. For zoom &gt;= 16, you have 7200 drawing elements, which is a lot.</p><p>4. Your code does not work as expected, because &quot;i&quot; will never be equal to 180.<br />Why:<br /><a href="https://www.extremeoptimization.com/resources/Articles/FPDotNetConceptsAndFormats.aspx">https://www.extremeoptimization.com/res … rmats.aspx</a><br />This means that every Update you create new lines.</p><p>5. GameObject.Destroy (GameObject.Find (&quot;Drawings&quot;));<br />By destroying this GameObject you do nothing, because the map will create it again with the lines that were added earlier.<br />Use OnlineMaps.RemoveDrawingElement or OnlineMaps.RemoveAllDrawingElements.</p><p>P.S. This is just a quick look at your script. Perhaps this has more problems.</p></blockquote></div>]]></description>
			<author><![CDATA[null@example.com (ZOE)]]></author>
			<pubDate>Tue, 25 Dec 2018 10:36:30 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4435#p4435</guid>
		</item>
		<item>
			<title><![CDATA[Re: Draw graticules]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4431#p4431</link>
			<description><![CDATA[<p>You are trying to draw some kind of grid, right?</p><p>There are a lot of problems in your script:<br />1. Drawing API is not designed for this purpose. <br />It is much better to use overlay here, or to limit the drawing area by viewing area.</p><p>2. You will have a different distance between the horizontal lines, and they will not be horizontal at all. <br />I do not know, maybe so planned, but it looks suspicious.</p><p>3. For zoom &gt;= 16, you have 7200 drawing elements, which is a lot.</p><p>4. Your code does not work as expected, because &quot;i&quot; will never be equal to 180.<br />Why:<br /><a href="https://www.extremeoptimization.com/resources/Articles/FPDotNetConceptsAndFormats.aspx">https://www.extremeoptimization.com/res … rmats.aspx</a><br />This means that every Update you create new lines.</p><p>5. GameObject.Destroy (GameObject.Find (&quot;Drawings&quot;));<br />By destroying this GameObject you do nothing, because the map will create it again with the lines that were added earlier.<br />Use OnlineMaps.RemoveDrawingElement or OnlineMaps.RemoveAllDrawingElements.</p><p>P.S. This is just a quick look at your script. Perhaps this has more problems.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Wed, 19 Dec 2018 11:11:15 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4431#p4431</guid>
		</item>
		<item>
			<title><![CDATA[Re: Draw graticules]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4430#p4430</link>
			<description><![CDATA[<div class="quotebox"><cite>Alex Vertax wrote:</cite><blockquote><p>Please explain your problem in more detail and show your script that draws lines.</p></blockquote></div><p>This is my scripts,&nbsp; when I zoom to larger than 10, the scenes become choppy.&nbsp; <img src="https://forum.infinity-code.com/img/smilies/sad.png" width="15" height="15" alt="sad" /></p>]]></description>
			<author><![CDATA[null@example.com (ZOE)]]></author>
			<pubDate>Wed, 19 Dec 2018 02:34:41 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4430#p4430</guid>
		</item>
		<item>
			<title><![CDATA[Re: Draw graticules]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4427#p4427</link>
			<description><![CDATA[<p>Please explain your problem in more detail and show your script that draws lines.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Tue, 18 Dec 2018 19:24:44 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4427#p4427</guid>
		</item>
		<item>
			<title><![CDATA[Re: Draw graticules]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4424#p4424</link>
			<description><![CDATA[<div class="quotebox"><cite>Alex Vertax wrote:</cite><blockquote><p>Hello.</p><p>Example:<br /><a href="http://infinity-code.com/atlas/online-maps/pages/DrawingAPI_Example.html">http://infinity-code.com/atlas/online-m … ample.html</a></p></blockquote></div><br /><p>But I still have some problems.<br />If I draw too much lines and zoom too much, it will stop working and crash. <br />How can I solve this? </p><p>Thanks for helping</p>]]></description>
			<author><![CDATA[null@example.com (ZOE)]]></author>
			<pubDate>Tue, 18 Dec 2018 12:29:35 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4424#p4424</guid>
		</item>
		<item>
			<title><![CDATA[Re: Draw graticules]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4423#p4423</link>
			<description><![CDATA[<div class="quotebox"><cite>Alex Vertax wrote:</cite><blockquote><p>Hello.</p><p>Example:<br /><a href="http://infinity-code.com/atlas/online-maps/pages/DrawingAPI_Example.html">http://infinity-code.com/atlas/online-m … ample.html</a></p></blockquote></div><br /><p>THANKS!</p>]]></description>
			<author><![CDATA[null@example.com (ZOE)]]></author>
			<pubDate>Tue, 18 Dec 2018 11:00:36 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4423#p4423</guid>
		</item>
		<item>
			<title><![CDATA[Re: Draw graticules]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4384#p4384</link>
			<description><![CDATA[<p>Hello.</p><p>Example:<br /><a href="http://infinity-code.com/atlas/online-maps/pages/DrawingAPI_Example.html">http://infinity-code.com/atlas/online-m … ample.html</a></p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Wed, 12 Dec 2018 09:20:19 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4384#p4384</guid>
		</item>
		<item>
			<title><![CDATA[Draw graticules]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4380#p4380</link>
			<description><![CDATA[<p>I would like to draw the longitude and&nbsp; latitude on the online maps. <br />But I don&#039;t understand how the script OnlineMapsDrawingLine.cs works.</p><p>Is there any convenient way to draw the graticules on the map? </p><br /><p>thanks a lot if there are more details to show how to draw ^^</p>]]></description>
			<author><![CDATA[null@example.com (ZOE)]]></author>
			<pubDate>Wed, 12 Dec 2018 05:19:01 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4380#p4380</guid>
		</item>
	</channel>
</rss>
