<?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 — Set marker altitude to match 3d map height]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=667</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=667&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Set marker altitude to match 3d map height.]]></description>
		<lastBuildDate>Mon, 12 Feb 2018 03:14:37 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Set marker altitude to match 3d map height]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=3380#p3380</link>
			<description><![CDATA[<p>This is a bug in Online Maps when using &quot;Use Elevation / Bottom - Min Value&quot;.<br />The problem is fixed, and in the next version it will work correctly.<br />Thank you for showing me this problem.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Mon, 12 Feb 2018 03:14:37 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=3380#p3380</guid>
		</item>
		<item>
			<title><![CDATA[Re: Set marker altitude to match 3d map height]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=3377#p3377</link>
			<description><![CDATA[<p>if i set marker altitude = 0, i assumed marker will be at sea level.</p><p>instead, the marker is visible way below (underneath) the map.</p><p>i therefore want to know, what does altitude=0 represent ?</p>]]></description>
			<author><![CDATA[null@example.com (braden)]]></author>
			<pubDate>Mon, 12 Feb 2018 02:54:58 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=3377#p3377</guid>
		</item>
		<item>
			<title><![CDATA[Re: Set marker altitude to match 3d map height]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=3376#p3376</link>
			<description><![CDATA[<p>If this is a question, please rephrase it in more detail.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Mon, 12 Feb 2018 02:49:07 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=3376#p3376</guid>
		</item>
		<item>
			<title><![CDATA[Re: Set marker altitude to match 3d map height]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=3372#p3372</link>
			<description><![CDATA[<div class="quotebox"><cite>leviniarened wrote:</cite><blockquote><p>But the marker is below of ground level. Is there a way to do this?</p></blockquote></div><p>So altitude is above sea level, or ... ?</p><p>Setting a marker with altitude 0, is well below the map (sea level).</p><p>thanks</p>]]></description>
			<author><![CDATA[null@example.com (braden)]]></author>
			<pubDate>Sun, 11 Feb 2018 11:46:15 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=3372#p3372</guid>
		</item>
		<item>
			<title><![CDATA[Re: Set marker altitude to match 3d map height]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=2872#p2872</link>
			<description><![CDATA[<p>Thanks for reply. Already tested with a value of 1. My mistake was in Elevation | Bottom should be Zero instead of Min Value.</p>]]></description>
			<author><![CDATA[null@example.com (leviniarened)]]></author>
			<pubDate>Sat, 30 Sep 2017 04:18:12 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=2872#p2872</guid>
		</item>
		<item>
			<title><![CDATA[Re: Set marker altitude to match 3d map height]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=2867#p2867</link>
			<description><![CDATA[<p>Hello.</p><p>This is because<br /></p><div class="codebox"><pre><code>var h = tscb.GetElevationValue(transform.position.x, transform.position.z, bestYScale, api.topLeftPosition, api.bottomRightPosition);</code></pre></div><p>automatically scales the value.<br />Just do not use bestYScale:<br /></p><div class="codebox"><pre><code>var h = tscb.GetElevationValue(transform.position.x, transform.position.z, 1, api.topLeftPosition, api.bottomRightPosition);</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Sat, 30 Sep 2017 00:23:02 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=2867#p2867</guid>
		</item>
		<item>
			<title><![CDATA[Set marker altitude to match 3d map height]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=2860#p2860</link>
			<description><![CDATA[<p>Hey!<br />I&#039;m trying to set marker.altitude to match the height of 3d map.</p><div class="codebox"><pre><code>marker = GetComponent&lt;OnlineMapsMarker3DInstance&gt;().marker as OnlineMapsMarker3D;
OnlineMaps api = OnlineMaps.instance;
OnlineMapsTileSetControl control = OnlineMapsTileSetControl.instance;
OnlineMapsControlBase3D tscb = OnlineMapsControlBase3D.instance;
double tlx, tly, brx, bry;
api.GetCorners(out tlx, out tly, out brx, out bry);
float bestYScale = tscb.GetBestElevationYScale(tlx, tly, brx, bry);
var h = tscb.GetElevationValue(transform.position.x, transform.position.z, bestYScale, api.topLeftPosition, api.bottomRightPosition);
marker.altitude = h;</code></pre></div><p>But the marker is below of ground level. Is there a way to do this?</p>]]></description>
			<author><![CDATA[null@example.com (leviniarened)]]></author>
			<pubDate>Fri, 29 Sep 2017 20:04:54 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=2860#p2860</guid>
		</item>
	</channel>
</rss>
