<?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 — Troubles when zooming]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=920</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=920&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Troubles when zooming.]]></description>
		<lastBuildDate>Mon, 22 Oct 2018 21:58:55 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Troubles when zooming]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4072#p4072</link>
			<description><![CDATA[<p>p.y *= OnlineMaps.instance.transform.localScale.x;</p><p>It did the trick ! Thanks a lot.</p><p>I will consider using Online Maps v3 beta after my next dead-line</p>]]></description>
			<author><![CDATA[null@example.com (Thibault)]]></author>
			<pubDate>Mon, 22 Oct 2018 21:58:55 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4072#p4072</guid>
		</item>
		<item>
			<title><![CDATA[Re: Troubles when zooming]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4070#p4070</link>
			<description><![CDATA[<p>In Online Maps v2 only smooth zoom emulation, which is achieved by scaling the map GameObject. <br />This means that in fact it does not change the corners of the map.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Mon, 22 Oct 2018 18:59:45 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4070#p4070</guid>
		</item>
		<item>
			<title><![CDATA[Re: Troubles when zooming]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4069#p4069</link>
			<description><![CDATA[<p>So after a deeper investigation, i noticed that there is no problem when my LineRenderer points have an altitude of 0.</p><p>The unwanted behaviour must be the result of this particular line in the GetWorldPositionWithAltitude function:</p><p>float yScale = control.GetBestElevationYScale(tlx, tly, brx, bry); </p><p>With tlx,tly,brx and bry beeing the result of map.GetCorners(out tlx, out tly, out brx, out bry);</p><p>I supposed that the corner of the map are not updated when the zoom is &quot;in progress&quot; between two levels so i tried to call &quot;OnlineMaps.instance.UpdateCorners();&quot; before trying to call &quot;map.GetCorners&quot; but it didn&#039;t solve my problem <img src="https://forum.infinity-code.com/img/smilies/hmm.png" width="15" height="15" alt="hmm" /></p>]]></description>
			<author><![CDATA[null@example.com (Thibault)]]></author>
			<pubDate>Mon, 22 Oct 2018 18:51:55 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4069#p4069</guid>
		</item>
		<item>
			<title><![CDATA[Re: Troubles when zooming]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4068#p4068</link>
			<description><![CDATA[<p>Hello.</p><p>If you are working with a smooth zoom, I highly recommend you try Online Maps v3 beta.<br />Online Maps v3 has a built-in float zoom, and it will be MUCH easier to solve your problem.</p><p>To make it work in Online Maps v2, you need in GetWorldPositionWithAltitude to multiply p and transform.localScale.x of the map.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Mon, 22 Oct 2018 18:43:26 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4068#p4068</guid>
		</item>
		<item>
			<title><![CDATA[Troubles when zooming]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4063#p4063</link>
			<description><![CDATA[<p>Hi</p><p>I have a lineRenderer. It does redraw when the event OnlineMapsTileSetControl.OnMeshUpdated occurs, which allow me to keep it in the correct position when moving the map.</p><p>But, when i&#039;m zooming &quot;too much&quot; (when i&#039;m beyong the max zoom level -&gt; i use an android tablet so as long as i don&#039;t release my finger when zooming i can go beyong the max zoom level) the lineRenderer is in an incorrect position. </p><p>As i don&#039;t want to wait for the user to release his finger to draw my lines in the correct position, i tried to use OnlineMapsTileSetControl.OnSmoothZoomProcess to update the lineRenderer constantly when zooming.</p><p>But it doesn&#039;t solve my problem.</p><p>OnlineMapsTileSetControl.OnSmoothZoomProcess is working though. (i can see my Debug.Log messages as long as i don&#039;t release my fingers).</p><p>Here is a GIF for a better understanding of the situation: </p><p><a href="https://gph.is/2AmbZBs">https://gph.is/2AmbZBs</a></p><p>What am i missing ?</p>]]></description>
			<author><![CDATA[null@example.com (Thibault)]]></author>
			<pubDate>Mon, 22 Oct 2018 14:56:35 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4063#p4063</guid>
		</item>
	</channel>
</rss>
