<?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 — OnlineMapsTile.tiles doesn't contain tiles for all zoom levels]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=1068</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1068&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in OnlineMapsTile.tiles doesn't contain tiles for all zoom levels.]]></description>
		<lastBuildDate>Mon, 25 Mar 2019 16:37:06 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: OnlineMapsTile.tiles doesn't contain tiles for all zoom levels]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4701#p4701</link>
			<description><![CDATA[<p>This worked great, thank you.</p>]]></description>
			<author><![CDATA[null@example.com (mattattack1000)]]></author>
			<pubDate>Mon, 25 Mar 2019 16:37:06 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4701#p4701</guid>
		</item>
		<item>
			<title><![CDATA[Re: OnlineMapsTile.tiles doesn't contain tiles for all zoom levels]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4700#p4700</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Mon, 25 Mar 2019 16:26:59 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4700#p4700</guid>
		</item>
		<item>
			<title><![CDATA[Re: OnlineMapsTile.tiles doesn't contain tiles for all zoom levels]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4699#p4699</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (mattattack1000)]]></author>
			<pubDate>Mon, 25 Mar 2019 16:17:16 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4699#p4699</guid>
		</item>
		<item>
			<title><![CDATA[Re: OnlineMapsTile.tiles doesn't contain tiles for all zoom levels]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4692#p4692</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Mon, 25 Mar 2019 09:28:07 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4692#p4692</guid>
		</item>
		<item>
			<title><![CDATA[OnlineMapsTile.tiles doesn't contain tiles for all zoom levels]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4690#p4690</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (mattattack1000)]]></author>
			<pubDate>Sun, 24 Mar 2019 23:05:33 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4690#p4690</guid>
		</item>
	</channel>
</rss>
