<?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 — Question about tile sources]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=1276</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1276&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Question about tile sources.]]></description>
		<lastBuildDate>Mon, 29 Jun 2020 09:06:01 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Question about tile sources]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6416#p6416</link>
			<description><![CDATA[<p>You mentioned that you are using TileDownloader, so check that this script most likely has downloaded tiles in Application.persistentDataPath + &quot;/Tiles/&quot;.<br /><a href="https://docs.unity3d.com/ScriptReference/Application-persistentDataPath.html">https://docs.unity3d.com/ScriptReferenc … aPath.html</a></p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Mon, 29 Jun 2020 09:06:01 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6416#p6416</guid>
		</item>
		<item>
			<title><![CDATA[Re: Question about tile sources]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6415#p6415</link>
			<description><![CDATA[<p>yes, I did it before many times with no effect, including directly cleaning the persistent path folder. The solution for me was disabling Memory Cache and File Cache as shown in the image below. I check it again and the old tiles disappear from the cache. Thank you.</p><p><span class="postimg"><img src="https://www.arfactory.ca/images/Captura%20de%20pantalla%202020-06-28%20a%20las%2023.46.57.png" alt="PunBB bbcode test" /></span></p>]]></description>
			<author><![CDATA[null@example.com (digitalmkt)]]></author>
			<pubDate>Sun, 28 Jun 2020 21:59:14 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6415#p6415</guid>
		</item>
		<item>
			<title><![CDATA[Re: Question about tile sources]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6414#p6414</link>
			<description><![CDATA[<p>Try clearing the file cache (Online Maps Cache / File Cache / Clear).</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Sun, 28 Jun 2020 14:10:29 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6414#p6414</guid>
		</item>
		<item>
			<title><![CDATA[Re: Question about tile sources]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6413#p6413</link>
			<description><![CDATA[<p>I&#039;m having the same problem here. The tiles downloaded by the first time doesn&#039;t change when I switch to the Mapbox customized map only.<br />The tiles were downloaded using the TileDownloader.cs on OpenStreetMap and Bing providers.</p><p>All instance of the tiles was deleted from the project folders and local Persistentpath and it still appears as a tile when I run in editor and device...I also changed to Online and the tiles downloaded still.</p><p><span class="postimg"><img src="https://www.arfactory.ca/images/Captura%20de%20pantalla%202020-06-27%20a%20las%2018.46.06.png" alt="PunBB bbcode test" /></span></p><p>The image shows the map with both 2 types of tiles one from Bing and the Mapbox.</p><p>I&#039;m also using Unity Addressables to manage the remote download of the tiles.</p><p>There&#039;s any other cache location OnlineMaps uses to load these tiles from there?</p><p>Thank you.</p>]]></description>
			<author><![CDATA[null@example.com (digitalmkt)]]></author>
			<pubDate>Sat, 27 Jun 2020 16:51:34 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6413#p6413</guid>
		</item>
		<item>
			<title><![CDATA[Re: Question about tile sources]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=5238#p5238</link>
			<description><![CDATA[<p>Modify the method TileDownloader.GetTilePath, and add the maptype ID into the path.<br /></p><div class="codebox"><pre><code>private string GetTilePath(int zoom, int x, int y)
{
    StringBuilder builder = new StringBuilder(folder);
    builder.Append(OnlineMaps.instance.activeType.fullID).Append(&quot;/&quot;); // &lt;&lt;-- HERE
    builder.Append(zoom).Append(&quot;/&quot;);
    builder.Append(x).Append(&quot;/&quot;);
    builder.Append(y).Append(&quot;.png&quot;);

    return builder.ToString();
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Wed, 26 Jun 2019 14:54:42 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=5238#p5238</guid>
		</item>
		<item>
			<title><![CDATA[Re: Question about tile sources]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=5236#p5236</link>
			<description><![CDATA[<p>I&#039;m using the script provided here to download tiles: </p><p><a href="http://forum.infinity-code.com/viewtopic.php?id=1052">http://forum.infinity-code.com/viewtopic.php?id=1052</a></p><p>So you are right, it&#039;s not downloaded in the resources folder but in a folder named &quot;Tiles&quot;.</p><p>My definition of &quot;user&quot; is the guy holding the tablet: the screenshot i provided was not from unity editor but from my app.</p><p>So tiles where downloaded on the tablet using the script, (with map provider set to arcGIS) then provider was change to something else (nokia night mode).</p><p>I guess i need to find where in the code the decision is made to use the pre-downloaded tile vs new tiles to download and add a check about the provider</p>]]></description>
			<author><![CDATA[null@example.com (Thibault)]]></author>
			<pubDate>Wed, 26 Jun 2019 14:15:10 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=5236#p5236</guid>
		</item>
		<item>
			<title><![CDATA[Re: Question about tile sources]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=5233#p5233</link>
			<description><![CDATA[<p>Hello.</p><p>&quot;I added the option for the user to download a set of tile in resources ...&quot;<br />Sorry, but I do not understand this phrase.<br />As far as I know, you can create / modify resources only in the Unity Editor.<br />After publication, the resources are not changeable.</p><p>So there may be two things:<br />1. User download tiles not into Resources.<br />2. You have some kind of your own meaning of the word “user” that works in Unity Editor.<br />What is your case?</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Tue, 25 Jun 2019 20:48:21 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=5233#p5233</guid>
		</item>
		<item>
			<title><![CDATA[Question about tile sources]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=5232#p5232</link>
			<description><![CDATA[<p>Hi<br />I&#039;m using Online maps with the following option :</p><p>source : Resources And Online.</p><p>I added the option for the user to download a set of tile in resources (based on top left and bottom right lat/lng) in case there would be no internet access for a futur use. It&#039;s working great.</p><p>However, if i change the provider ( and i&#039;m having an internet access), the tiles that i downloaded (with a provider A) will always appear and won&#039;t be replaced by tiles from the internet (with provider B).</p><p>See this example : <br />- tiles from arcGIS where downloaded in resources<br />- provider has been switched to nokia - night mode<br />- the ArcGIS tiles won&#039;t disapear</p><p>Is there a way to prevent the tiles from the resource to appear if the provider is not the same ?</p><p><span class="postimg"><img src="https://i.imgur.com/PJwwCCU.jpg" alt="https://i.imgur.com/PJwwCCU.jpg" /></span></p><p>Thanks</p><p>Thibault</p>]]></description>
			<author><![CDATA[null@example.com (Thibault)]]></author>
			<pubDate>Tue, 25 Jun 2019 19:34:20 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=5232#p5232</guid>
		</item>
	</channel>
</rss>
