<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Marker3d remain suspended in the air]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1533&amp;type=atom" />
	<updated>2020-07-10T11:54:10Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1533</id>
		<entry>
			<title type="html"><![CDATA[Re: Marker3d remain suspended in the air]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6454#p6454" />
			<content type="html"><![CDATA[<p>Thanks Alex. Good job!</p>]]></content>
			<author>
				<name><![CDATA[LazzLab]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=669</uri>
			</author>
			<updated>2020-07-10T11:54:10Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6454#p6454</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Marker3d remain suspended in the air]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6450#p6450" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2020-07-07T20:57:49Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6450#p6450</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Marker3d remain suspended in the air]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6449#p6449" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[LazzLab]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=669</uri>
			</author>
			<updated>2020-07-07T13:56:24Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6449#p6449</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Marker3d remain suspended in the air]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6362#p6362" />
			<content type="html"><![CDATA[<p>Thanks Alex, I will try your solution. Good job</p>]]></content>
			<author>
				<name><![CDATA[LazzLab]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=669</uri>
			</author>
			<updated>2020-06-12T14:12:57Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6362#p6362</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Marker3d remain suspended in the air]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6319#p6319" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2020-06-03T19:28:14Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6319#p6319</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Marker3d remain suspended in the air]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6317#p6317" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[LazzLab]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=669</uri>
			</author>
			<updated>2020-06-03T15:26:55Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6317#p6317</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Marker3d remain suspended in the air]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6316#p6316" />
			<content type="html"><![CDATA[<p>Hello.</p><p>Unfortunately, I did not understand your problem.<br />Please show your script.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2020-06-03T14:37:06Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6316#p6316</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Marker3d remain suspended in the air]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6314#p6314" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[LazzLab]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=669</uri>
			</author>
			<updated>2020-06-03T14:09:04Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6314#p6314</id>
		</entry>
</feed>
