<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — OnlineMapsTile.tiles doesn't contain tiles for all zoom levels]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1068&amp;type=atom" />
	<updated>2019-03-25T16:37:06Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1068</id>
		<entry>
			<title type="html"><![CDATA[Re: OnlineMapsTile.tiles doesn't contain tiles for all zoom levels]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4701#p4701" />
			<content type="html"><![CDATA[<p>This worked great, thank you.</p>]]></content>
			<author>
				<name><![CDATA[mattattack1000]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=928</uri>
			</author>
			<updated>2019-03-25T16:37:06Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4701#p4701</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: OnlineMapsTile.tiles doesn't contain tiles for all zoom levels]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4700#p4700" />
			<content type="html"><![CDATA[<p>Use OnlineMapsTileManager.OnTileLoaded to load your overlay for the tile immediately after the tile is loaded.<br />And you will not need to go through the entire list of tiles.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2019-03-25T16:26:59Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4700#p4700</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: OnlineMapsTile.tiles doesn't contain tiles for all zoom levels]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4699#p4699" />
			<content type="html"><![CDATA[<p>Thanks for the response. I assumed this was probably the reason. So if there is no way around that I am currently trying to update the overlay each time it is zoomed to a zoom level for the first time so that OnlineMapsTile.tiles will contain that zoom level. However, the issue I am having now is that for example, I zoom from level 16 to 17 and call the code above to update the overlay but it still only has 16 stored until I change the zoom level again either to 16 or 18. Any idea why or how I could fix this so that it updates right away and doesn&#039;t require a second zoom change?</p>]]></content>
			<author>
				<name><![CDATA[mattattack1000]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=928</uri>
			</author>
			<updated>2019-03-25T16:17:16Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4699#p4699</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: OnlineMapsTile.tiles doesn't contain tiles for all zoom levels]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4692#p4692" />
			<content type="html"><![CDATA[<p>Hello.</p><p>Online Maps stores only the tiles required for the current map view + the tiles required for smooth movement and zooming.<br />There is no point in keeping all tiles loaded, because it will use too much memory.<br />Instead, Online Maps load tiles when they are needed, and unloads when they are no longer needed.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2019-03-25T09:28:07Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4692#p4692</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[OnlineMapsTile.tiles doesn't contain tiles for all zoom levels]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4690#p4690" />
			<content type="html"><![CDATA[<p>Currently I&#039;m using Maptiler tiles just stored in the Resources folder and looping over each tile in OnlineMapTile.tiles but I noticed that it only contains a limited amount of zoom levels. In my application I have zoom levels that range from 14-20 and the default upon starting the application is 16, but then I noticed when debugging that OnlineMapTile.tiles only is storing 12-16 until zooming in further.</p><p>Is there a way to make sure OnlineMapTile.tiles has all zoom levels 14-20 without zooming in so that all zoom levels will be replaced with with the Maptiler overlay.</p><p>Example of what some of the code looks like:</p><p>foreach(OnlineMapsTile nextTile in OnlineMapsTile.tiles){&nbsp; &nbsp;<br />&nbsp; &nbsp; nextTile.overlayBackTexture = Resources.Load&lt;Texture2D&gt;(string.Format(&quot;OnlineMapsTiles/&quot; + floorNum + &quot;/{0}/{1}/{2}&quot;, <br />&nbsp; &nbsp; nextTile.zoom, nextTile.x, nextTile.y));<br />}</p><p>Any help would be much appreciated. It may be that I&#039;m just going about this the wrong way.</p>]]></content>
			<author>
				<name><![CDATA[mattattack1000]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=928</uri>
			</author>
			<updated>2019-03-24T23:05:33Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4690#p4690</id>
		</entry>
</feed>
