<?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 — Marker position]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=472</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=472&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Marker position.]]></description>
		<lastBuildDate>Wed, 22 Mar 2017 13:18:36 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Marker position]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=2075#p2075</link>
			<description><![CDATA[<p>Hello.</p><p>You mean 3D markers, right?!</p><p>OnClick example:<br /></p><div class="codebox"><pre><code>using UnityEngine;

public class LogMarker3DPosition:MonoBehaviour
{
    private void Start()
    {
        OnlineMapsMarker3D marker3D = OnlineMapsControlBase3D.instance.AddMarker3D(OnlineMaps.instance.position, null);
        marker3D.OnClick += OnMarkerClick;
    }

    private void OnMarkerClick(OnlineMapsMarkerBase marker)
    {
        double lng, lat;
        marker.GetPosition(out lng, out lat);
        Debug.Log(&quot;Marker3D latitude: &quot; + lat + &quot;, longitude: &quot; + lng);
    }
}</code></pre></div><br /><p>Example from another script:<br /></p><div class="codebox"><pre><code>using UnityEngine;

public class LogMarker3DPositionFromAnotherScript:MonoBehaviour
{
    private void OnMouseUpAsButton()
    {
        OnlineMapsMarkerBase marker = GetComponent&lt;OnlineMapsMarker3DInstance&gt;().marker;
        double lng, lat;
        marker.GetPosition(out lng, out lat);
        Debug.Log(&quot;Marker3D latitude: &quot; + lat + &quot;, longitude: &quot; + lng);
    }
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Wed, 22 Mar 2017 13:18:36 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=2075#p2075</guid>
		</item>
		<item>
			<title><![CDATA[Marker position]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=2074#p2074</link>
			<description><![CDATA[<p>Hi, i need to take latitude and longitude of a marker clicked; now i attached my custom script on the prefab of my marker with onmousedown(), i saw you have onclick() how can i use it and how can i take clicked marker&#039;s coords?</p>]]></description>
			<author><![CDATA[null@example.com (valerio.paventi)]]></author>
			<pubDate>Wed, 22 Mar 2017 11:17:24 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=2074#p2074</guid>
		</item>
	</channel>
</rss>
