<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — TileCaching only for online or offline maps too?]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=507&amp;type=atom" />
	<updated>2017-04-13T14:56:28Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=507</id>
		<entry>
			<title type="html"><![CDATA[Re: TileCaching only for online or offline maps too?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2216#p2216" />
			<content type="html"><![CDATA[<p>great thx</p>]]></content>
			<author>
				<name><![CDATA[cubic]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=417</uri>
			</author>
			<updated>2017-04-13T14:56:28Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2216#p2216</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: TileCaching only for online or offline maps too?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2213#p2213" />
			<content type="html"><![CDATA[<p>Hello.</p><p>If you only use offline tiles, you do not need to use the cache.<br />It&#039;s just too much.</p><p>If you use online + offline tiles, you need to use this way:<br /></p><div class="codebox"><pre><code>private void Start()
{
    map = OnlineMaps.instance;

    if (OnlineMapsCache.instance != null) OnlineMapsCache.instance.OnStartDownloadTile += OnStartDownloadTile;
    else map.OnStartDownloadTile += OnStartDownloadTile;
}</code></pre></div><p>In this case only online tiles will be cached. <br />Tiles loaded from your scripts will not be duplicated in the cache.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2017-04-13T14:51:23Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2213#p2213</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[TileCaching only for online or offline maps too?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2205#p2205" />
			<content type="html"><![CDATA[<p>Hi,</p><p>I use the event hook you supply for feeding offline maptiles in your system ( OnStartDownloadTile(OnlineMapsTile tile)), there I retrieve offline map tiles out of a mbtiles file.<br />My question now is the caching compenent, is it useful or is it bypassed by this hook. So does it store the tiles in a cache regardless of where they come. I guess so, I just wanted to make sure not to bloat my app without using the feature...<br />best,Robert</p>]]></content>
			<author>
				<name><![CDATA[cubic]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=417</uri>
			</author>
			<updated>2017-04-13T12:14:13Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2205#p2205</id>
		</entry>
</feed>
