<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Add labels to map]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1432&amp;type=atom" />
	<updated>2020-02-04T06:17:44Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1432</id>
		<entry>
			<title type="html"><![CDATA[Re: Add labels to map]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=5948#p5948" />
			<content type="html"><![CDATA[<p>Thanks for the feedback.</p>]]></content>
			<author>
				<name><![CDATA[vgi]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1195</uri>
			</author>
			<updated>2020-02-04T06:17:44Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=5948#p5948</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add labels to map]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=5903#p5903" />
			<content type="html"><![CDATA[<p>These lines will update the label position when changing location and zoom if you will use them in the right places.<br />What do I mean by “right place”:<br />Inside the method that will be called on certain events.<br />For example (one of):<br />OnlineMaps.OnMapUpdated, OnlineMaps.OnUpdateLate, OnlineMaps.OnChangePosition + OnlineMaps.OnChangeZoom, MonoBehaviour.Update, MonoBehaviour.LateUpdate.<br />The example above uses OnlineMaps.OnUpdateLate.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2020-01-25T20:00:42Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=5903#p5903</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add labels to map]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=5902#p5902" />
			<content type="html"><![CDATA[<p>Thanks. Please could you confirm if these are the lines (47-52) that position the label on top of the map, so when panning/zooming the map the label changes position/size accordingly.</p>]]></content>
			<author>
				<name><![CDATA[vgi]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1195</uri>
			</author>
			<updated>2020-01-25T16:31:57Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=5902#p5902</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add labels to map]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=5901#p5901" />
			<content type="html"><![CDATA[<p>I already gave you a link to an example in post 2.<br />In this case, you are interested in lines 47-52, which show how to convert geographic coordinates to a local position on canvas.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2020-01-25T13:08:08Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=5901#p5901</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add labels to map]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=5900#p5900" />
			<content type="html"><![CDATA[<p>We thought the code from the link for option #3 was for adding the labels. Would there be a sample script for adding labels to the map?</p>]]></content>
			<author>
				<name><![CDATA[vgi]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1195</uri>
			</author>
			<updated>2020-01-24T17:48:10Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=5900#p5900</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add labels to map]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=5899#p5899" />
			<content type="html"><![CDATA[<p>Unfortunately, I did not understand your question.<br />Initially, you mentioned that labels are not associated to markers, but here you create markers.<br />Please rephrase this in more detail.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2020-01-24T09:38:54Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=5899#p5899</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add labels to map]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=5897#p5897" />
			<content type="html"><![CDATA[<p>For option #3, in the script from the suggested page, could you specify the source for the values of (1, 1) and (2, 2) in the following two lines:</p><p>OnlineMapsMarkerManager.CreateItem(new Vector2(1, 1), &quot;Marker 2&quot;);<br />OnlineMapsMarkerManager.CreateItem(new Vector2(2, 1), &quot;Marker 3&quot;);</p>]]></content>
			<author>
				<name><![CDATA[vgi]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1195</uri>
			</author>
			<updated>2020-01-23T16:06:04Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=5897#p5897</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add labels to map]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=5888#p5888" />
			<content type="html"><![CDATA[<p>Hello.</p><p>You have several ways:<br />1. Make your labels as 2D or 3D markers that will contain your text as an image.</p><p>2. Use TextMeshPro to display text.<br />In this case, you must use 3D markers, or position these GameObjects manually.<br /><a href="http://infinity-code.com/doxygen/online-maps/classOnlineMapsControlBaseDynamicMesh.html#ac16b27e5c2dcb6ddd0529a953048d3d6">http://infinity-code.com/doxygen/online … 953048d3d6</a></p><p>3. Use UI to display text.<br />How to position UI elements:<br /><a href="http://infinity-code.com/atlas/online-maps/pages/uGUICustomTooltipForAllMarkersExample.html">http://infinity-code.com/atlas/online-m … ample.html</a></p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2020-01-20T06:01:41Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=5888#p5888</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Add labels to map]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=5886#p5886" />
			<content type="html"><![CDATA[<p>Any inputs on the simplest way to add labels - not associated to markers - to a couple map coordinates? The labels should scale up/down according to the zoom levels.</p>]]></content>
			<author>
				<name><![CDATA[vgi]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1195</uri>
			</author>
			<updated>2020-01-19T17:15:27Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=5886#p5886</id>
		</entry>
</feed>
