<?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 — Zoom the map to the bounds of an object]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=1223</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1223&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Zoom the map to the bounds of an object.]]></description>
		<lastBuildDate>Mon, 10 Jun 2019 23:31:31 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Zoom the map to the bounds of an object]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=5137#p5137</link>
			<description><![CDATA[<p>Many thanks! It seem to be just what I need.<br />It&#039;s incredible how many functions are implemented in OnLineMaps</p>]]></description>
			<author><![CDATA[null@example.com (danielesuppo)]]></author>
			<pubDate>Mon, 10 Jun 2019 23:31:31 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=5137#p5137</guid>
		</item>
		<item>
			<title><![CDATA[Re: Zoom the map to the bounds of an object]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=5129#p5129</link>
			<description><![CDATA[<p>Hello.</p><p>2. OnlineMaps.GetCorners.<br /><a href="http://infinity-code.com/doxygen/online-maps/classOnlineMaps.html#acd05d23678cd37919b32b5d91edd9f1c">http://infinity-code.com/doxygen/online … d91edd9f1c</a></p><p>4. The differences in lng / lat are different.<br />Sorry for the tautology.<br />The map is counted in tiles from the coordinate of the center point.<br />Tiles at the same zoom level may contain a different number of degrees of latitude and longitude.<br />The difference in tile positions is x2 and x0.5.</p><p>P.S. Most likely you are looking for OnlineMapsUtils.GetCenterPointAndZoom.<br /><a href="http://infinity-code.com/doxygen/online-maps/classOnlineMapsUtils.html#a13f0d279fa7fcd3c632aa2cc18081dc8">http://infinity-code.com/doxygen/online … cc18081dc8</a></p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Sun, 09 Jun 2019 18:53:36 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=5129#p5129</guid>
		</item>
		<item>
			<title><![CDATA[Zoom the map to the bounds of an object]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=5126#p5126</link>
			<description><![CDATA[<p>Hello,<br />I&#039;d like to be able to zoom the map so that it fit an object.<br />To do that my idea is to:<br />1 - get the max and min bounds of the object and convert that in long/lat positions<br />2 - get the bounds (corners) of the map as long/lat positions<br />3 - get the difference<br />4 - calculate the new zoom level to fit the object</p><p>My problems are:<br />2 - I can&#039;t remember how to get the corners of the map... <img src="https://forum.infinity-code.com/img/smilies/hmm.png" width="15" height="15" alt="hmm" /><br />4 - Which is the difference in long/lat from each zoom level? Is it 2x / 0.5x ?</p><p>P.s. maybe there&#039;s a better way?<br />Many thanks!</p>]]></description>
			<author><![CDATA[null@example.com (danielesuppo)]]></author>
			<pubDate>Sun, 09 Jun 2019 16:45:18 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=5126#p5126</guid>
		</item>
	</channel>
</rss>
