<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Draw graticules]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=988&amp;type=atom" />
	<updated>2018-12-25T10:36:30Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=988</id>
		<entry>
			<title type="html"><![CDATA[Re: Draw graticules]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4435#p4435" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[ZOE]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=857</uri>
			</author>
			<updated>2018-12-25T10:36:30Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4435#p4435</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Draw graticules]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4431#p4431" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2018-12-19T11:11:15Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4431#p4431</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Draw graticules]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4430#p4430" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[ZOE]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=857</uri>
			</author>
			<updated>2018-12-19T02:34:41Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4430#p4430</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Draw graticules]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4427#p4427" />
			<content type="html"><![CDATA[<p>Please explain your problem in more detail and show your script that draws lines.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2018-12-18T19:24:44Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4427#p4427</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Draw graticules]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4424#p4424" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[ZOE]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=857</uri>
			</author>
			<updated>2018-12-18T12:29:35Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4424#p4424</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Draw graticules]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4423#p4423" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[ZOE]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=857</uri>
			</author>
			<updated>2018-12-18T11:00:36Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4423#p4423</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Draw graticules]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4384#p4384" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2018-12-12T09:20:19Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4384#p4384</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Draw graticules]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4380#p4380" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[ZOE]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=857</uri>
			</author>
			<updated>2018-12-12T05:19:01Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4380#p4380</id>
		</entry>
</feed>
