<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Get Local unity position from Coordintes via map instance.]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1532&amp;type=atom" />
	<updated>2020-06-04T09:55:20Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1532</id>
		<entry>
			<title type="html"><![CDATA[Re: Get Local unity position from Coordintes via map instance.]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6325#p6325" />
			<content type="html"><![CDATA[<p>Thats so awesome thanks so much.</p>]]></content>
			<author>
				<name><![CDATA[daniel.osullivan]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1311</uri>
			</author>
			<updated>2020-06-04T09:55:20Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6325#p6325</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Get Local unity position from Coordintes via map instance.]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6323#p6323" />
			<content type="html"><![CDATA[<p>I meant that each map stores a reference to the control used, and control to the map.<br />In this case, you need to cast the control type to OnlineMapsControlBaseDynamicMesh.<br /></p><div class="codebox"><pre><code>(mapInstance.control as OnlineMapsControlBaseDynamicMesh).GetWorldPosition(...);</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2020-06-04T09:24:50Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6323#p6323</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Get Local unity position from Coordintes via map instance.]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6322#p6322" />
			<content type="html"><![CDATA[<p>Hi. I cant seem to access that &#039;GetWorldPosition()&#039; method from instance.control. Looking in the documentation it seems the &#039;GetWorldPosition&#039; is only in the &#039;OnlineMapsControlBaseDynamicMesh&#039; Class. Is there anyway to access this class from the instance of OnlineMaps?</p>]]></content>
			<author>
				<name><![CDATA[daniel.osullivan]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1311</uri>
			</author>
			<updated>2020-06-04T08:34:00Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6322#p6322</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Get Local unity position from Coordintes via map instance.]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6315#p6315" />
			<content type="html"><![CDATA[<p>Hello.</p><div class="codebox"><pre><code>mapInstance.control.GetWorldPosition(...);</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2020-06-03T14:35:19Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6315#p6315</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Get Local unity position from Coordintes via map instance.]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6313#p6313" />
			<content type="html"><![CDATA[<p>Ive just started working with online maps. The project im working on has 2 different map viewports. Im am using a custom solution to place markers. Just spawning sprites at a specific location in the unity space. I was using this to do it:</p><p>Vector3 markerLocalPos = OnlineMapsControlBaseDynamicMesh.instance.GetWorldPosition(positionLongitudeLatitude.x, positionLongitudeLatitude.y);</p><p>However I need some way to specify to use the current instance of OnlineMaps to get the position becasue as of right now its spawning all my markers on the main map rather than the second map.</p>]]></content>
			<author>
				<name><![CDATA[daniel.osullivan]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1311</uri>
			</author>
			<updated>2020-06-03T13:46:34Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6313#p6313</id>
		</entry>
</feed>
