<?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 — Why can't the TianDiTu map and other maps be set to Chinese? Thank you]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=938</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=938&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Why can't the TianDiTu map and other maps be set to Chinese? Thank you.]]></description>
		<lastBuildDate>Sat, 10 Nov 2018 23:37:55 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Why can't the TianDiTu map and other maps be set to Chinese? Thank you]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4199#p4199</link>
			<description><![CDATA[<div class="quotebox"><blockquote><p>How to set TianDiTu map text size？thank you</p></blockquote></div><p>TianDiTu does not have this feature.</p><p>P.S. Please use your thread instead of posting your questions in random forum threads.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Sat, 10 Nov 2018 23:37:55 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4199#p4199</guid>
		</item>
		<item>
			<title><![CDATA[Re: Why can't the TianDiTu map and other maps be set to Chinese? Thank you]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4192#p4192</link>
			<description><![CDATA[<p>For example, in this way:<br />1. Online Maps / Advanced / Traffic - ON<br />2. Traffic Provider - Custom.<br />3. URL:<br /></p><div class="codebox"><pre><code>http://t1.tianditu.gov.cn/DataServer?T=cva_w&amp;x={x}&amp;y={y}&amp;l={zoom}</code></pre></div><p>4. Map Texture (Import Settings) / Alpha Source - None.<br />5. Apply.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Fri, 09 Nov 2018 18:08:52 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4192#p4192</guid>
		</item>
		<item>
			<title><![CDATA[Re: Why can't the TianDiTu map and other maps be set to Chinese? Thank you]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4190#p4190</link>
			<description><![CDATA[<p>How to implement in UIImage controls？Thank you</p>]]></description>
			<author><![CDATA[null@example.com (yinyu)]]></author>
			<pubDate>Fri, 09 Nov 2018 09:25:37 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4190#p4190</guid>
		</item>
		<item>
			<title><![CDATA[Re: Why can't the TianDiTu map and other maps be set to Chinese? Thank you]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4189#p4189</link>
			<description><![CDATA[<p>TianDiTu uses labels as overlay.<br />How to use it (for Tileset control):<br /></p><div class="codebox"><pre><code>using UnityEngine;

public class TianDiTuLabels:MonoBehaviour
{
    private void Start()
    {
        if (OnlineMapsCache.instance != null)
        {
            OnlineMapsCache.instance.OnStartDownloadTile += OnStartDownloadTile;
            OnlineMapsCache.instance.OnLoadedFromCache += OnStartDownloadTile;
        }
        else OnlineMaps.instance.OnStartDownloadTile += OnStartDownloadTile;
    }

    private void OnStartDownloadTile(OnlineMapsTile tile)
    {
        StartDonwloadLabels(tile);
        OnlineMaps.instance.StartDownloadTile(tile);
    }

    private void StartDonwloadLabels(OnlineMapsTile tile)
    {
        OnlineMapsWWW www = OnlineMapsUtils.GetWWW(&quot;http://t1.tianditu.gov.cn/DataServer?T=cva_w&amp;x=&quot; + tile.x + &quot;&amp;y=&quot; + tile.y + &quot;&amp;l=&quot; + tile.zoom);
        www.OnComplete += OnLabelsDownloadComplete;
        www.customData = tile;
    }

    private void OnLabelsDownloadComplete(OnlineMapsWWW www)
    {
        OnlineMapsTile tile = www.customData as OnlineMapsTile;
        if (tile == null || tile.status == OnlineMapsTileStatus.disposed || tile.status == OnlineMapsTileStatus.error) return;

        Texture2D texture = new Texture2D(256, 256);
        www.LoadImageIntoTexture(texture);
        tile.overlayBackTexture = texture;
    }
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Fri, 09 Nov 2018 06:49:28 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4189#p4189</guid>
		</item>
		<item>
			<title><![CDATA[Re: Why can't the TianDiTu map and other maps be set to Chinese? Thank you]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4188#p4188</link>
			<description><![CDATA[<p>I want to set up map language for Chinese and how to implement it？thank you</p>]]></description>
			<author><![CDATA[null@example.com (yinyu)]]></author>
			<pubDate>Fri, 09 Nov 2018 05:14:26 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4188#p4188</guid>
		</item>
		<item>
			<title><![CDATA[Re: Why can't the TianDiTu map and other maps be set to Chinese? Thank you]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4180#p4180</link>
			<description><![CDATA[<p>Hello.</p><p>Are you sure that this is a question about Mesh to Terrain?!<br />This is a question about Online Maps, right?<br />Online Maps supports TianDiTu and AMap.<br />Just checked, both providers work well.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Thu, 08 Nov 2018 11:18:34 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4180#p4180</guid>
		</item>
		<item>
			<title><![CDATA[Why can't the TianDiTu map and other maps be set to Chinese? Thank you]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4178#p4178</link>
			<description><![CDATA[<p>Why can&#039;t the TianDiTu map and other maps be set to Chinese? Thank you.</p>]]></description>
			<author><![CDATA[null@example.com (yinyu)]]></author>
			<pubDate>Thu, 08 Nov 2018 09:02:36 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4178#p4178</guid>
		</item>
	</channel>
</rss>
