<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Find needed zoom]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=867&amp;type=atom" />
	<updated>2018-07-27T13:43:18Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=867</id>
		<entry>
			<title type="html"><![CDATA[Re: Find needed zoom]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3724#p3724" />
			<content type="html"><![CDATA[<p>Thanks for helping.<br />Will try this variant.</p>]]></content>
			<author>
				<name><![CDATA[drand]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=588</uri>
			</author>
			<updated>2018-07-27T13:43:18Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3724#p3724</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Find needed zoom]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3721#p3721" />
			<content type="html"><![CDATA[<p>Why does not suit you the first way?<br />You can calculate this before coroutine.</p><p>Maybe I did not clearly set out the idea?!<br />I&#039;ll try to clarify a bit:<br />You use GetCenterPointAndZoom. <br />Subtract from the resulting zoom 1 or 2 points.<br />Next, use this value in your coroutine.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2018-07-27T10:28:52Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3721#p3721</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Find needed zoom]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3720#p3720" />
			<content type="html"><![CDATA[<p>Thanks for the reply.<br />But it doesn&#039;t help me. I have to zoom in/out in coroutine in given time, so I need to know target zoom on coroutine starting.<br />I&#039;m using beta online maps version with float zoom.<br />Thanks!</p>]]></content>
			<author>
				<name><![CDATA[drand]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=588</uri>
			</author>
			<updated>2018-07-27T08:44:11Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3720#p3720</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Find needed zoom]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3718#p3718" />
			<content type="html"><![CDATA[<p>Hello.</p><p>You can solve this in two ways:<br />1. Simply reduce the zoom by 1 or 2 points, depending on the size of the map.<br />2. After GetCenterPointAndZoom, get the screen coordinates of the markers and make sure they are in the visible area. If at least one of the markers is hidden, reduce the zoom and check again.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2018-07-26T20:52:52Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3718#p3718</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Find needed zoom]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3715#p3715" />
			<content type="html"><![CDATA[<p>Hi!<br />How I can find needed zoom for the map, that list of points would be visible in the screen. I have, for example,&nbsp; some area, that could be represented by points with geo coordinates. So I need to predict needed map zoom, that this area would be visible in the screen with all these points. <br />I have tried OnlineMapsUtils.GetCenterPointAndZoom function, but it doesn&#039;t suitable in my case because my map tileset gameobject is bigger than the screen size.<br />Thanks!</p>]]></content>
			<author>
				<name><![CDATA[drand]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=588</uri>
			</author>
			<updated>2018-07-26T12:11:32Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3715#p3715</id>
		</entry>
</feed>
