<?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 — Lock Position and Zoom]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=307</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=307&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Lock Position and Zoom.]]></description>
		<lastBuildDate>Thu, 20 Oct 2016 14:38:38 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Lock Position and Zoom]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=1394#p1394</link>
			<description><![CDATA[<p>That worked. Although I only needed the (OnlineMaps.instance.zoom = 10;) line since I want the map to start out at a specific long and lat and not the center. Thanks!</p><p>Not that it wasn&#039;t difficult to just click on the Map object. Just wanted to see if it was a bug or just me <img src="https://forum.infinity-code.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (IIIDefektIII)]]></author>
			<pubDate>Thu, 20 Oct 2016 14:38:38 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=1394#p1394</guid>
		</item>
		<item>
			<title><![CDATA[Re: Lock Position and Zoom]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=1391#p1391</link>
			<description><![CDATA[<p>I think I understand what the problem is.<br />Try it:<br /></p><div class="codebox"><pre><code>/*     INFINITY CODE 2013-2016      */
/*   http://www.infinity-code.com   */

using UnityEngine;

namespace InfinityCode.OnlineMapsExamples
{
    /// &lt;summary&gt;
    /// Example of how to limit the position and zoom the map.
    /// &lt;/summary&gt;
    [AddComponentMenu(&quot;Infinity Code/Online Maps/Examples (API Usage)/LockPositionAndZoomExample&quot;)]
    public class LockPositionAndZoomExample : MonoBehaviour
    {
        private void Start()
        {
            // Lock map zoom range
            OnlineMaps.instance.zoomRange = new OnlineMapsRange(10, 15);

            // Lock map coordinates range
            OnlineMaps.instance.positionRange = new OnlineMapsPositionRange(33, -119, 34, -118);

            // Initializes the position and zoom
            OnlineMaps.instance.zoom = 10;
            OnlineMaps.instance.position = OnlineMaps.instance.positionRange.center;
        }
    }
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Thu, 20 Oct 2016 05:49:18 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=1391#p1391</guid>
		</item>
		<item>
			<title><![CDATA[Re: Lock Position and Zoom]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=1390#p1390</link>
			<description><![CDATA[<p>Odd what version of Unity are you running? I am running two machines both on 5.4.1 and both do the same thing.</p>]]></description>
			<author><![CDATA[null@example.com (IIIDefektIII)]]></author>
			<pubDate>Wed, 19 Oct 2016 19:40:32 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=1390#p1390</guid>
		</item>
		<item>
			<title><![CDATA[Re: Lock Position and Zoom]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=1388#p1388</link>
			<description><![CDATA[<p>Hello</p><p>I just checked the work of this example.<br />Everything works well, even if Map GameObject is not selected.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Wed, 19 Oct 2016 18:57:53 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=1388#p1388</guid>
		</item>
		<item>
			<title><![CDATA[Lock Position and Zoom]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=1385#p1385</link>
			<description><![CDATA[<p>Not sure this is a bug but seems so. When using the Lock Position and zoom features if you do not have the map object selected in the Hierarchy it zooms all the way out and doesn&#039;t reflect the correct positioning when you hit play until you click on the map object and then it updates to what it is suppose to be when using in the editor.</p>]]></description>
			<author><![CDATA[null@example.com (IIIDefektIII)]]></author>
			<pubDate>Wed, 19 Oct 2016 18:34:58 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=1385#p1385</guid>
		</item>
	</channel>
</rss>
