<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Changing Overlay at runtime]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=80&amp;type=atom" />
	<updated>2016-02-09T10:55:17Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=80</id>
		<entry>
			<title type="html"><![CDATA[Re: Changing Overlay at runtime]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=336#p336" />
			<content type="html"><![CDATA[<p>Thanks Alex ;-)</p>]]></content>
			<author>
				<name><![CDATA[nigel.moore]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=51</uri>
			</author>
			<updated>2016-02-09T10:55:17Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=336#p336</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Changing Overlay at runtime]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=335#p335" />
			<content type="html"><![CDATA[<p>If you use this script, it&#039;s even easier. <br />You need to clear the list of items:<br /></p><div class="codebox"><pre><code>items.Clear();</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2016-02-09T10:46:27Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=335#p335</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Changing Overlay at runtime]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=334#p334" />
			<content type="html"><![CDATA[<p>Thanks for your response. I am actually using a slightly modified version of a script you posted here <a href="http://forum.infinity-code.com/viewtopic.php?id=51">http://forum.infinity-code.com/viewtopic.php?id=51</a> to display an overlay over the map tiles, it is modified only so it fits into the dependency injection framework that I use. When a different overlay is required I just change the path to the overlay tiles - but I have to manually change the zoom level for this to be reflected immediately. So my question is - is there a better way of doing this?</p><p>Thanks</p><p>Nigel</p>]]></content>
			<author>
				<name><![CDATA[nigel.moore]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=51</uri>
			</author>
			<updated>2016-02-09T08:31:46Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=334#p334</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Changing Overlay at runtime]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=330#p330" />
			<content type="html"><![CDATA[<p>Hello.</p><p>You need to unload customData.<br />Something like this:</p><div class="codebox"><pre><code>lock (OnlineMapsTile.tiles)
{
    foreach (OnlineMapsTile t in OnlineMapsTile.tiles)
    {
        CData data = t.customData as CData;
        if (data != null)
        {
            if (data.texture != null) Destroy(data.texture);
            t.customData = null;
        }
    }
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2016-02-08T18:43:25Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=330#p330</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Changing Overlay at runtime]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=329#p329" />
			<content type="html"><![CDATA[<p>Hi,</p><p>I am trying to change a map overlay (created using MapTiler) at runtime and have noticed that it needs a change of zoom to occur before the change is reflected in the view. Is there a way of showing a change of overlay tiles without altering the zoom of the map?</p><p>Thanks</p><p>Nige</p>]]></content>
			<author>
				<name><![CDATA[nigel.moore]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=51</uri>
			</author>
			<updated>2016-02-08T17:14:20Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=329#p329</id>
		</entry>
</feed>
