<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Why can't the TianDiTu map and other maps be set to Chinese? Thank you]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=938&amp;type=atom" />
	<updated>2018-11-10T23:37:55Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=938</id>
		<entry>
			<title type="html"><![CDATA[Re: Why can't the TianDiTu map and other maps be set to Chinese? Thank you]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4199#p4199" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2018-11-10T23:37:55Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4199#p4199</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Why can't the TianDiTu map and other maps be set to Chinese? Thank you]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4192#p4192" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2018-11-09T18:08:52Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4192#p4192</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Why can't the TianDiTu map and other maps be set to Chinese? Thank you]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4190#p4190" />
			<content type="html"><![CDATA[<p>How to implement in UIImage controls？Thank you</p>]]></content>
			<author>
				<name><![CDATA[yinyu]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=833</uri>
			</author>
			<updated>2018-11-09T09:25:37Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4190#p4190</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Why can't the TianDiTu map and other maps be set to Chinese? Thank you]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4189#p4189" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2018-11-09T06:49:28Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4189#p4189</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Why can't the TianDiTu map and other maps be set to Chinese? Thank you]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4188#p4188" />
			<content type="html"><![CDATA[<p>I want to set up map language for Chinese and how to implement it？thank you</p>]]></content>
			<author>
				<name><![CDATA[yinyu]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=833</uri>
			</author>
			<updated>2018-11-09T05:14:26Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4188#p4188</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Why can't the TianDiTu map and other maps be set to Chinese? Thank you]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4180#p4180" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2018-11-08T11:18:34Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4180#p4180</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Why can't the TianDiTu map and other maps be set to Chinese? Thank you]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4178#p4178" />
			<content type="html"><![CDATA[<p>Why can&#039;t the TianDiTu map and other maps be set to Chinese? Thank you.</p>]]></content>
			<author>
				<name><![CDATA[yinyu]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=833</uri>
			</author>
			<updated>2018-11-08T09:02:36Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4178#p4178</id>
		</entry>
</feed>
