<?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 remain suspended in the air]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=1533</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1533&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Marker3d remain suspended in the air.]]></description>
		<lastBuildDate>Fri, 10 Jul 2020 11:54:10 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Marker3d remain suspended in the air]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6454#p6454</link>
			<description><![CDATA[<p>Thanks Alex. Good job!</p>]]></description>
			<author><![CDATA[null@example.com (LazzLab)]]></author>
			<pubDate>Fri, 10 Jul 2020 11:54:10 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6454#p6454</guid>
		</item>
		<item>
			<title><![CDATA[Re: Marker3d remain suspended in the air]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6450#p6450</link>
			<description><![CDATA[<p>I rechecked this, found and fixed the bug in elevations when elevation manager has been disabled or a map zoom goes out of the elevation zoom range.<br />The new version will most likely be available through the built-in update system in 24 hours.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Tue, 07 Jul 2020 20:57:49 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6450#p6450</guid>
		</item>
		<item>
			<title><![CDATA[Re: Marker3d remain suspended in the air]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6449#p6449</link>
			<description><![CDATA[<p>Thanks Alex. Your suggested solution is very useful, however it does not solve the problem. If there are 3d markers, they remain suspended in the air when the elevation is turned off in the range. I am forced to activate (Lock Y Scale) to bring the markers down to the ground</p>]]></description>
			<author><![CDATA[null@example.com (LazzLab)]]></author>
			<pubDate>Tue, 07 Jul 2020 13:56:24 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6449#p6449</guid>
		</item>
		<item>
			<title><![CDATA[Re: Marker3d remain suspended in the air]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6362#p6362</link>
			<description><![CDATA[<p>Thanks Alex, I will try your solution. Good job</p>]]></description>
			<author><![CDATA[null@example.com (LazzLab)]]></author>
			<pubDate>Fri, 12 Jun 2020 14:12:57 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6362#p6362</guid>
		</item>
		<item>
			<title><![CDATA[Re: Marker3d remain suspended in the air]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6319#p6319</link>
			<description><![CDATA[<p>In Online Maps v3.x, the elevations feature has been moved from Tileset Control to separate managers, one of which you need to add (for example, Bing Maps Elevation Manager).<br />You do not need to manually turn on and off elevations. Just specify a zoomRange at which elevations will work.<br />Something like this:<br /></p><div class="codebox"><pre><code>using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ContollerElevationLazz : MonoBehaviour
{

    OnlineMaps control;

    public int minZoom = 10;
    public int maxZoom = 14;
    public GameObject image_3D;
   
    private OnlineMapsMarker3D marker3D;
   

   
   void Start()
   
    {
        control = OnlineMaps.instance;
       
        control.OnChangeZoom += Control;
        OnlineMapsElevationManagerBase.instance.zoomRange = new OnlineMapsRange(minZoom, maxZoom);
       
    }

   
    void Update()
    {
        control = OnlineMaps.instance;
       
        control.OnChangeZoom += Control;
       
       
    }

   

    private void Control()
    {
        if ( control.zoom &lt;= minZoom || control.zoom &gt;= maxZoom )
        {
            image_3D.SetActive(false);   
           
        }
        else
        {
            image_3D.SetActive(true);
           
        }
    }
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Wed, 03 Jun 2020 19:28:14 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6319#p6319</guid>
		</item>
		<item>
			<title><![CDATA[Re: Marker3d remain suspended in the air]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6317#p6317</link>
			<description><![CDATA[<p>using System.Collections;<br />using System.Collections.Generic;<br />using UnityEngine;</p><p>public class ContollerElevationLazz : MonoBehaviour <br />{</p><p>&nbsp; &nbsp; OnlineMaps control;</p><p>&nbsp; &nbsp; public int minZoom = 10;<br />&nbsp; &nbsp; public int maxZoom = 14;<br />&nbsp; &nbsp; public GameObject image_3D;<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; private OnlineMapsMarker3D marker3D;<br />&nbsp; &nbsp; </p><p>&nbsp; &nbsp; <br />&nbsp; &nbsp;void Start()<br />&nbsp; &nbsp;<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; control = OnlineMaps.instance;<br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; control.OnChangeZoom += Control;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; }</p><p>&nbsp; &nbsp; <br />&nbsp; &nbsp; void Update() <br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; control = OnlineMaps.instance;<br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; control.OnChangeZoom += Control;<br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; }</p><p>&nbsp; &nbsp; </p><p>&nbsp; &nbsp; private void Control()<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; if ( control.zoom &lt;= minZoom || control.zoom &gt;= maxZoom ) <br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OnlineMapsTileSetControl.instance.useElevation = false;&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; image_3D.SetActive(false);&nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; else <br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OnlineMapsTileSetControl.instance.useElevation = true;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; image_3D.SetActive(true);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; }<br />}</p>]]></description>
			<author><![CDATA[null@example.com (LazzLab)]]></author>
			<pubDate>Wed, 03 Jun 2020 15:26:55 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6317#p6317</guid>
		</item>
		<item>
			<title><![CDATA[Re: Marker3d remain suspended in the air]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6316#p6316</link>
			<description><![CDATA[<p>Hello.</p><p>Unfortunately, I did not understand your problem.<br />Please show your script.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Wed, 03 Jun 2020 14:37:06 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6316#p6316</guid>
		</item>
		<item>
			<title><![CDATA[Marker3d remain suspended in the air]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6314#p6314</link>
			<description><![CDATA[<p>Hi. <br />I&#039;m new to programming. <br />I&#039;m trying to update from v2.5 to 3.5. <br />With v2.5 I use OnlineMapsTileSetControl.instance.useElevation = false; to disable the elevation in the range of<br />&quot;control.zoom &lt;= minZoom || control.zoom&gt; = maxZoom&quot; but I can&#039;t get it in v3.5. <br />The problem is that the marker3d remain suspended in the air. Thanks</p>]]></description>
			<author><![CDATA[null@example.com (LazzLab)]]></author>
			<pubDate>Wed, 03 Jun 2020 14:09:04 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6314#p6314</guid>
		</item>
	</channel>
</rss>
