<?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 — Marker3d dragging problem with non zero map position + elevations]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=674</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=674&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Marker3d dragging problem with non zero map position + elevations.]]></description>
		<lastBuildDate>Mon, 09 Oct 2017 11:15:30 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Marker3d dragging problem with non zero map position + elevations]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=2905#p2905</link>
			<description><![CDATA[<p>I see.<br />Fixed a description of the method in the documentation.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Mon, 09 Oct 2017 11:15:30 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=2905#p2905</guid>
		</item>
		<item>
			<title><![CDATA[Re: Marker3d dragging problem with non zero map position + elevations]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=2902#p2902</link>
			<description><![CDATA[<p>I&#039;m also manually setting marker altitude while dragging action is triggered:</p><div class="codebox"><pre><code>void Start()
{
    marker3d = GetComponent&lt;OnlineMapsMarker3DInstance&gt;().marker as OnlineMapsMarker3D;

    marker3d.SetDraggable();

    marker3d.OnDrag += (v) =&gt;
    {
         marker3d.altitude = CalculateAltitude();
    };
}

float CalculateAltitude()
{
    double tlx, tly, brx, bry;
    api.GetCorners( out tlx , out tly , out brx , out bry );
    var h = tscb.GetElevationValue( transform.position.x , transform.position.z , 1 , api.topLeftPosition , api.bottomRightPosition );
        return h;
}</code></pre></div><p>Solution for me is to use local position. Would you mention about relative (local) coordinates in the doc?</p>]]></description>
			<author><![CDATA[null@example.com (leviniarened)]]></author>
			<pubDate>Sun, 08 Oct 2017 01:42:47 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=2902#p2902</guid>
		</item>
		<item>
			<title><![CDATA[Re: Marker3d dragging problem with non zero map position + elevations]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=2901#p2901</link>
			<description><![CDATA[<p>Hello.</p><p>Thanks for bug report, but I could not reproduce it.</p><p>Video:<br /><a href="https://www.dropbox.com/s/gxvucu52eplwd6f/2017-10-08%20-%200001.mp4?dl=0">https://www.dropbox.com/s/gxvucu52eplwd … 1.mp4?dl=0</a></p><p>I missed something?</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Sat, 07 Oct 2017 23:44:44 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=2901#p2901</guid>
		</item>
		<item>
			<title><![CDATA[Marker3d dragging problem with non zero map position + elevations]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=2900#p2900</link>
			<description><![CDATA[<p>Hi,<br />I found an incorrect behaviour<br />How to reproduce:<br />Using map with enabled bing elevation.<br />Change map position to (1000, 0, 0). Go to place with big height difference (example lat: 46.0290180901501, lng: 11.0902961294749, zoom: 16))<br />Create marker3d, set allow drag and&nbsp; try to drag marker (marker flies).</p>]]></description>
			<author><![CDATA[null@example.com (leviniarened)]]></author>
			<pubDate>Sat, 07 Oct 2017 15:14:07 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=2900#p2900</guid>
		</item>
	</channel>
</rss>
