<?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 — How to translate the map with custom function]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=1208</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1208&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in How to translate the map with custom function.]]></description>
		<lastBuildDate>Thu, 06 Jun 2019 08:53:46 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: How to translate the map with custom function]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=5100#p5100</link>
			<description><![CDATA[<p>Hello.</p><p>Internally, Online Maps works in the same way - it converts the screen position into a tile position, and calculate the difference.<br />Honestly, I do not know how this can be implemented differently.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Thu, 06 Jun 2019 08:53:46 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=5100#p5100</guid>
		</item>
		<item>
			<title><![CDATA[How to translate the map with custom function]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=5098#p5098</link>
			<description><![CDATA[<p>Hello,<br />I&#039;d like to implement my own controllers to move, scale and rotate the map with touch on mobile device.<br />Actually in my classes I&#039;m using a function like this one to move the map from one point to another one:</p><p>OnlineMaps.instance.projection.CoordinatesToTile(longitude, latitude, OnlineMaps.instance.zoom,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out double tx, out double ty);<br />OnlineMaps.instance.SetTilePosition(tx, ty);</p><p>but I think it&#039;s not a good idea to convert touch screen position in gps position, than get the difference, etc etc.</p><p>I&#039;d like to be able to translate the map in a good and reliable way from screen delta positions, just like you did with the default touch control that you implemented (that I had to disable to not interfere with some others touch controls).<br />Could you suggest me how to do that?<br />Many thanks!</p>]]></description>
			<author><![CDATA[null@example.com (danielesuppo)]]></author>
			<pubDate>Wed, 05 Jun 2019 19:28:02 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=5098#p5098</guid>
		</item>
	</channel>
</rss>
