<?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 — Adding an Image to the Tile just like Draw() method on OnlineMapsDraw]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=1941</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1941&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Adding an Image to the Tile just like Draw() method on OnlineMapsDraw.]]></description>
		<lastBuildDate>Tue, 12 Apr 2022 09:19:45 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Adding an Image to the Tile just like Draw() method on OnlineMapsDraw]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=8205#p8205</link>
			<description><![CDATA[<p>Something like that:<br /></p><div class="codebox"><pre><code>using UnityEngine;

namespace InfinityCode.OnlineMapsSupport
{
    public class UpdateGameObjectPosition : MonoBehaviour
    {
        public GameObject target;
        public double longitude;
        public double latitude;

        private void Start()
        {
            OnlineMaps.instance.OnChangePosition += UpdatePosition;
            OnlineMaps.instance.OnChangeZoom += UpdatePosition;
        }

        private void UpdatePosition()
        {
            target.transform.position = OnlineMapsTileSetControl.instance.GetWorldPosition(longitude, latitude);
        }
    }
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Tue, 12 Apr 2022 09:19:45 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=8205#p8205</guid>
		</item>
		<item>
			<title><![CDATA[Re: Adding an Image to the Tile just like Draw() method on OnlineMapsDraw]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=8203#p8203</link>
			<description><![CDATA[<p>Thank you, is there any chance there&#039;s a script example of it? For the OnChangeZoom and GetWorldPosition</p>]]></description>
			<author><![CDATA[null@example.com (moonflow123)]]></author>
			<pubDate>Tue, 12 Apr 2022 01:35:23 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=8203#p8203</guid>
		</item>
		<item>
			<title><![CDATA[Re: Adding an Image to the Tile just like Draw() method on OnlineMapsDraw]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=8200#p8200</link>
			<description><![CDATA[<p>Hello.</p><p>Subscribe to OnlineMaps.OnChangePosition and OnlineMaps.OnChangeZoom and update the position and scale of your object in the scene or screen.<br /><a href="https://infinity-code.com/doxygen/online-maps/classOnlineMaps.html#aa5d1ad65ba903de2b1c5ac37bdd7bfa1">https://infinity-code.com/doxygen/onlin … 37bdd7bfa1</a></p><p>To convert coordinates to World Position use OnlineMapsControlBaseDynamicMesh.GetWorldPosition.<br /><a href="https://infinity-code.com/doxygen/online-maps/classOnlineMapsControlBaseDynamicMesh.html#a72cf71ab8fdc9263d81e986316068362">https://infinity-code.com/doxygen/onlin … 6316068362</a></p><p>If your object is UI element, you can convert coordinates this way:<br /><a href="https://infinity-code.com/atlas/online-maps/pages/uGUIMarkerDrawer.html">https://infinity-code.com/atlas/online- … rawer.html</a></p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Mon, 11 Apr 2022 18:14:36 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=8200#p8200</guid>
		</item>
		<item>
			<title><![CDATA[Adding an Image to the Tile just like Draw() method on OnlineMapsDraw]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=8194#p8194</link>
			<description><![CDATA[<p>Hi, is there any change or script that I can use to add a GameObject or Canvas into the map just like the Draw() method?? I wanted to add the GameObject so that it can act like a drawing, in which when I zoom, the Object size and position will not follow the camera but the size and position in which I draw or instantiate it in the OnlineMaps Tile.</p>]]></description>
			<author><![CDATA[null@example.com (moonflow123)]]></author>
			<pubDate>Mon, 11 Apr 2022 07:08:37 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=8194#p8194</guid>
		</item>
	</channel>
</rss>
