<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Set marker altitude to match 3d map height]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=667&amp;type=atom" />
	<updated>2018-02-12T03:14:37Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=667</id>
		<entry>
			<title type="html"><![CDATA[Re: Set marker altitude to match 3d map height]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3380#p3380" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2018-02-12T03:14:37Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3380#p3380</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Set marker altitude to match 3d map height]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3377#p3377" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[braden]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=499</uri>
			</author>
			<updated>2018-02-12T02:54:58Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3377#p3377</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Set marker altitude to match 3d map height]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3376#p3376" />
			<content type="html"><![CDATA[<p>If this is a question, please rephrase it in more detail.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2018-02-12T02:49:07Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3376#p3376</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Set marker altitude to match 3d map height]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=3372#p3372" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[braden]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=499</uri>
			</author>
			<updated>2018-02-11T11:46:15Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=3372#p3372</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Set marker altitude to match 3d map height]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2872#p2872" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[leviniarened]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=557</uri>
			</author>
			<updated>2017-09-30T04:18:12Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2872#p2872</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Set marker altitude to match 3d map height]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2867#p2867" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2017-09-30T00:23:02Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2867#p2867</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Set marker altitude to match 3d map height]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2860#p2860" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[leviniarened]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=557</uri>
			</author>
			<updated>2017-09-29T20:04:54Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2860#p2860</id>
		</entry>
</feed>
