<?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 — Possible Drawing API bug in newest version]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=426</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=426&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Possible Drawing API bug in newest version.]]></description>
		<lastBuildDate>Tue, 21 Feb 2017 14:14:28 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Possible Drawing API bug in newest version]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=1868#p1868</link>
			<description><![CDATA[<p>Thanks for your reply, Alex. I&#039;ll try to dig up more, maybe I&#039;m missing something.</p>]]></description>
			<author><![CDATA[null@example.com (d.brylenko)]]></author>
			<pubDate>Tue, 21 Feb 2017 14:14:28 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=1868#p1868</guid>
		</item>
		<item>
			<title><![CDATA[Re: Possible Drawing API bug in newest version]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=1862#p1862</link>
			<description><![CDATA[<p>Hello.</p><p>Based on your code, I made a test script (attached), and it works well for all controls.<br />Perhaps the problem is a little bit more specific?!</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Mon, 20 Feb 2017 22:16:49 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=1862#p1862</guid>
		</item>
		<item>
			<title><![CDATA[Possible Drawing API bug in newest version]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=1857#p1857</link>
			<description><![CDATA[<p>Hello,</p><p>I have a simple script that moves map position to user location that looks something like this:</p><p>&nbsp; &nbsp; void Update()<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; if (enableMapMovement)<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mapMovementAngle += Time.deltaTime / time;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (mapMovementAngle &gt; 1)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OnlineMaps.instance.zoom = 17;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; enableMapMovement = false;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mapMovementAngle = 1;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OnlineMaps.instance.position = Vector2.Lerp(lastMapPosition, userLocation.position, mapMovementAngle);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OnlineMaps.instance.Redraw();<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; }</p><p>&nbsp; &nbsp; public void MoveMapToUser()<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; if (userLocation.inMapView &amp;&amp; enableMapMovement == false)<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lastMapPosition = OnlineMaps.instance.position;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mapMovementAngle = 0;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; enableMapMovement = true;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; else<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OnlineMaps.instance.position = userLocation.position;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OnlineMaps.instance.zoom = 17;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OnlineMaps.instance.Redraw();<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; }</p><p>It was working fine, but afer I updated to the newest OnlineMaps version (2.5.2.1) it doesn&#039;t work. Is there any changes in APIs that could cause this?</p>]]></description>
			<author><![CDATA[null@example.com (d.brylenko)]]></author>
			<pubDate>Mon, 20 Feb 2017 11:03:56 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=1857#p1857</guid>
		</item>
	</channel>
</rss>
