<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — zoom level  & providers]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1066&amp;type=atom" />
	<updated>2019-03-22T15:50:08Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1066</id>
		<entry>
			<title type="html"><![CDATA[Re: zoom level  & providers]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4675#p4675" />
			<content type="html"><![CDATA[<p>Hello.</p><p>Example:<br /></p><div class="codebox"><pre><code>using UnityEngine;

public class CheckArcGISTile : MonoBehaviour
{
    private Color emptyColor = new Color32(204, 204, 204, 255);

    private void Start()
    {
        OnlineMapsTileManager.OnTileLoaded += OnTileLoaded;
    }

    private void OnTileLoaded(OnlineMapsTile tile)
    {
        Texture2D texture = tile.texture;
        Color c1 = texture.GetPixel(1, 1);
        Color c2 = texture.GetPixel(254, 254);

        if (c1 == emptyColor &amp;&amp; c2 == emptyColor) tile.status = OnlineMapsTileStatus.error;
    }
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2019-03-22T15:50:08Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4675#p4675</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[zoom level  & providers]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4670#p4670" />
			<content type="html"><![CDATA[<p>Hi</p><p>i&#039;m using online maps with ArcGIS provider.</p><p>When i&#039;m zooming at max level, all the tiles become white. I would like to keep the old tiles instead of having a white map (even if the resolution of the tiles would be bad). </p><p>How can i achieve that ? Is there an easy way to prevent the tiles to update if zoomlvl &gt; value ? Or is there a better way to deal with this problem ?</p><p>Thx,<br />Thibault</p>]]></content>
			<author>
				<name><![CDATA[Thibault]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=821</uri>
			</author>
			<updated>2019-03-21T21:41:02Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4670#p4670</id>
		</entry>
</feed>
