<?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 — Cached map area download problem]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=1634</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1634&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Cached map area download problem.]]></description>
		<lastBuildDate>Thu, 12 Nov 2020 15:29:57 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Cached map area download problem]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6836#p6836</link>
			<description><![CDATA[<p>Unfortunately I don&#039;t see a problem here.<br />I compared the inertia in Online Maps and the inertia in Google Maps, and I think it looks very similar.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Thu, 12 Nov 2020 15:29:57 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6836#p6836</guid>
		</item>
		<item>
			<title><![CDATA[Re: Cached map area download problem]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6835#p6835</link>
			<description><![CDATA[<p>The map moves jumpy on slow speed, im now using default inertia script with default 0.9 value<br /><a href="https://i.imgur.com/eH79eci.gif">https://i.imgur.com/eH79eci.gif</a></p>]]></description>
			<author><![CDATA[null@example.com (wththd)]]></author>
			<pubDate>Thu, 12 Nov 2020 13:16:05 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6835#p6835</guid>
		</item>
		<item>
			<title><![CDATA[Re: Cached map area download problem]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6834#p6834</link>
			<description><![CDATA[<p>Please clarify what you mean by &quot;is not smooth enough&quot;?<br />I just tested this on my side and it is very smooth. Video:<br /><a href="https://www.dropbox.com/s/1fk6jetkkzjvz2g/ScreenRecorderProject4.mp4?dl=0">https://www.dropbox.com/s/1fk6jetkkzjvz … 4.mp4?dl=0</a><br />Unfortunately, the video doesn&#039;t quite convey the smoothness I have on the device.<br />But believe me, there are no freezes or lags here.<br />Maybe I&#039;m just looking in the wrong direction.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Thu, 12 Nov 2020 12:52:35 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6834#p6834</guid>
		</item>
		<item>
			<title><![CDATA[Re: Cached map area download problem]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6833#p6833</link>
			<description><![CDATA[<p>Yes, sorry, it was my fault, because i set parent levels to 0. Thank you very much for your help. Last question: i tried to use your example inertia but it is not smooth enough, even if i tried to use smoothdamp on speed and increasing max samples&nbsp; is there any suggestions to improve example inertia?</p>]]></description>
			<author><![CDATA[null@example.com (wththd)]]></author>
			<pubDate>Thu, 12 Nov 2020 12:27:43 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6833#p6833</guid>
		</item>
		<item>
			<title><![CDATA[Re: Cached map area download problem]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6832#p6832</link>
			<description><![CDATA[<p>I just checked the map in all modes, and for me it only happens when Count Parent Levels - 0, which is logical, because the map unloads all previous zoom levels when the zoom changes.<br />Please show screenshots of all of your map components (including Advanced and Troubleshooting sections of the map component).</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Thu, 12 Nov 2020 11:43:30 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6832#p6832</guid>
		</item>
		<item>
			<title><![CDATA[Re: Cached map area download problem]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6831#p6831</link>
			<description><![CDATA[<p>i mean if i disable my script - tiles load without being gray like this <br /><a href="https://i.imgur.com/HxSrPy4.gif">https://i.imgur.com/HxSrPy4.gif</a><br />when i activate my script, there is grey tiles appear after zoom in/out<br />like this<br /><a href="https://i.imgur.com/W3hMtJq.gif">https://i.imgur.com/W3hMtJq.gif</a></p>]]></description>
			<author><![CDATA[null@example.com (wththd)]]></author>
			<pubDate>Thu, 12 Nov 2020 10:52:14 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6831#p6831</guid>
		</item>
		<item>
			<title><![CDATA[Re: Cached map area download problem]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6830#p6830</link>
			<description><![CDATA[<p>I checked your code and it works correctly on my side.<br />Video:<br /><a href="https://www.dropbox.com/s/huvsmu1absm7vsy/ScreenRecorderProject3.mp4?dl=0">https://www.dropbox.com/s/huvsmu1absm7v … 3.mp4?dl=0</a></p><p>A couple of things about the video:<br />1. I disabled the cache and commented out part of the script so that tiles are loaded only from your path.<br />2. I set Count Parent Tiles to 0 so that parent tiles do not affect the view of the map, and tiles are unloaded when zoom in, and loaded again when zoom out.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Thu, 12 Nov 2020 10:32:21 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6830#p6830</guid>
		</item>
		<item>
			<title><![CDATA[Re: Cached map area download problem]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6829#p6829</link>
			<description><![CDATA[<p>sure, <a href="https://pastebin.com/56JHhDue">https://pastebin.com/56JHhDue</a></p>]]></description>
			<author><![CDATA[null@example.com (wththd)]]></author>
			<pubDate>Thu, 12 Nov 2020 09:10:00 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6829#p6829</guid>
		</item>
		<item>
			<title><![CDATA[Re: Cached map area download problem]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6827#p6827</link>
			<description><![CDATA[<p>Please show your code where you load the tiles.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Thu, 12 Nov 2020 08:52:30 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6827#p6827</guid>
		</item>
		<item>
			<title><![CDATA[Re: Cached map area download problem]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6826#p6826</link>
			<description><![CDATA[<p>ty for your help, it working great now, but the problem now is that there are grey tiles on reload, but there it was working better before loading from my source, how to make smooth reload tiles on zoom?</p>]]></description>
			<author><![CDATA[null@example.com (wththd)]]></author>
			<pubDate>Thu, 12 Nov 2020 08:50:13 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6826#p6826</guid>
		</item>
		<item>
			<title><![CDATA[Re: Cached map area download problem]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6824#p6824</link>
			<description><![CDATA[<p>No, you cannot add items to the tile cache or atlas. The cache is simply not designed for this.</p><p>No, you don&#039;t have to resolve it manually.</p><p>How tile loading works:<br />1. If a tile is in the cache, it is loaded from the cache.<br />2. If someone has subscribed to OnStartDownloadTile, this event is called, where you can load the tile yourself or do some action, and continue downloading using the built-in downloader. If you loaded a tile yourself, then it is not cached.<br />3. If the settings indicate that a tile should be loaded from Resources or Streaming Assets, the tile is searched for in these folders.<br />4. The tile is loaded from the Internet.</p><p>So you need to subscribe to OnStartDownloadTile, and download the tile from your folder.</p><p>How to get the provider id:<br /></p><div class="codebox"><pre><code>private void OnStartDownloadTile(OnlineMapsTile tile)
{
    // ...
    
    OnlineMapsRasterTile rTile = tile as OnlineMapsRasterTile;
    string provider_id = rTile.mapType.provider.id;

    // ...
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Wed, 11 Nov 2020 11:10:01 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6824#p6824</guid>
		</item>
		<item>
			<title><![CDATA[Re: Cached map area download problem]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6823#p6823</link>
			<description><![CDATA[<p>The problem is that i want to store files at cache folder because i want to save different providers for offline usage, also can i manually add downloaded textures to atlas? <br />Or i should manually resolve the cases when i have inet conection to use cache normally and no inet conection and use my own folders?</p>]]></description>
			<author><![CDATA[null@example.com (wththd)]]></author>
			<pubDate>Wed, 11 Nov 2020 10:42:16 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6823#p6823</guid>
		</item>
		<item>
			<title><![CDATA[Re: Cached map area download problem]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6822#p6822</link>
			<description><![CDATA[<p>Intercept requests to load tiles this way ...<br /><a href="https://infinity-code.com/atlas/online-maps/pages/CustomDownloadTileExample.html">https://infinity-code.com/atlas/online- … ample.html</a><br />... and read the tiles from your path.</p><p>Tip: do not use the cache folder for your tiles, because this will create two problems:<br />1. The cache will not load and/or delete these files because they are not in the atlas.<br />2. If you delete them yourself, then how do you know if this file is not in the atlas, which can create dead records in the atlas.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Wed, 11 Nov 2020 10:35:26 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6822#p6822</guid>
		</item>
		<item>
			<title><![CDATA[Re: Cached map area download problem]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6820#p6820</link>
			<description><![CDATA[<p>yes, i save in application data path and permissions are ok, the path is like:<br />C:\Users\User\AppData\LocalLow\companyName\appName\OnlineMapsCache\TileCache\osm\mapnik\le\en\17\76550<br />for example, and map does not switch to 17 zoom at all, while i ve downloaded this area</p>]]></description>
			<author><![CDATA[null@example.com (wththd)]]></author>
			<pubDate>Wed, 11 Nov 2020 10:15:25 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6820#p6820</guid>
		</item>
		<item>
			<title><![CDATA[Re: Cached map area download problem]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6819#p6819</link>
			<description><![CDATA[<p>Hello.</p><p>Where do you save the data in the script you implemented? To Resources folder?<br />You don&#039;t have write access to Resources after build.<br />Typically, Application.persistentDataPath folder is used for these purposes.<br /><a href="https://docs.unity3d.com/ScriptReference/Application-persistentDataPath.html">https://docs.unity3d.com/ScriptReferenc … aPath.html</a></p><p>TileDownloader stores tiles in persistentDataPath.</p><p>The cache is also not stored in Resources, and the file cache tries to load only the tiles that are present in the atlas.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Wed, 11 Nov 2020 09:44:41 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6819#p6819</guid>
		</item>
	</channel>
</rss>
