<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Full refresh]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1375&amp;type=atom" />
	<updated>2024-11-04T17:12:42Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1375</id>
		<entry>
			<title type="html"><![CDATA[Re: Full refresh]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=9709#p9709" />
			<content type="html"><![CDATA[<p>Hi.</p><p>When you use multiple map types from the same provider, you&#039;d better register your own providers and/or map types.<br />Example:<br /><a href="https://infinity-code.com/atlas/online-maps/pages/CreateCustomStylesExample.html">https://infinity-code.com/atlas/online- … ample.html</a></p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2024-11-04T17:12:42Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=9709#p9709</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Full refresh]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=9707#p9707" />
			<content type="html"><![CDATA[<p>Hi, this solution doesn&#039;t seem to work for me. I have a Mapbox map integrated into the asset (works), but if I try to alter the mapID, I need to do it somehow like this:</p><div class="codebox"><pre><code>        OnlineMaps.instance.mapType = mapTypeID;
        OnlineMapsProvider.MapType mapType = OnlineMapsProvider.FindMapType(mapTypeID);
        OnlineMapsProvider.ExtraField field = GetExtraField(mapType.extraFields, &quot;mapid&quot;);
        field.value = Mapbox_ID_Light;</code></pre></div><p>This actually changes the map to the correct one, whenever I scroll over an uncached area, but it doesn&#039; refresh the existing tiles.</p><p>I tried below, without success:</p><div class="codebox"><pre><code>        OnlineMapsCache.instance.ClearFileCache();

        foreach (OnlineMapsTile tile in OnlineMapsTile.tiles) tile.Dispose();
        OnlineMapsTile.tiles.Clear();
        OnlineMaps.instance.Redraw();
        OnlineMaps.instance.tileManager.Reset();</code></pre></div>]]></content>
			<author>
				<name><![CDATA[DDQ]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1662</uri>
			</author>
			<updated>2024-11-04T15:24:32Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=9707#p9707</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Full refresh]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=5653#p5653" />
			<content type="html"><![CDATA[<p>awesome thanks!</p>]]></content>
			<author>
				<name><![CDATA[isra]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1090</uri>
			</author>
			<updated>2019-10-04T14:10:57Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=5653#p5653</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Full refresh]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=5652#p5652" />
			<content type="html"><![CDATA[<p>Hello.</p><p>Redrawing the map when changing the type of map occurs automatically.<br />Example of how to change the type of map:<br /><a href="http://infinity-code.com/atlas/online-maps/pages/ChangeProviderAndTypeExample.html">http://infinity-code.com/atlas/online-m … ample.html</a></p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2019-10-02T13:02:41Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=5652#p5652</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Full refresh]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=5651#p5651" />
			<content type="html"><![CDATA[<p>Hi,</p><p>I want to implement a button to change the type of the map (like in google maps, I want the user to be able to change from terrain, to satellite and so on) how can I force a full refresh of the map when the type is changed?</p>]]></content>
			<author>
				<name><![CDATA[isra]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1090</uri>
			</author>
			<updated>2019-10-02T12:25:49Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=5651#p5651</id>
		</entry>
</feed>
