<?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 — map zoom in one level when tap the marker (billboard or 3d)]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=368</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=368&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in map zoom in one level when tap the marker (billboard or 3d).]]></description>
		<lastBuildDate>Fri, 06 Jan 2017 01:34:39 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: map zoom in one level when tap the marker (billboard or 3d)]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=1632#p1632</link>
			<description><![CDATA[<p>Thank you for your help.<br />In our case, we decided to uncheck zoom in on double click</p>]]></description>
			<author><![CDATA[null@example.com (hung_nguyen)]]></author>
			<pubDate>Fri, 06 Jan 2017 01:34:39 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=1632#p1632</guid>
		</item>
		<item>
			<title><![CDATA[Re: map zoom in one level when tap the marker (billboard or 3d)]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=1617#p1617</link>
			<description><![CDATA[<div class="codebox"><pre><code>using UnityEngine;

public class ZoomInOnDoubleClick:MonoBehaviour
{
    private OnlineMapsControlBase3D control;

    private void Start()
    {
        control = OnlineMapsControlBase3D.instance;

        // Disable zoomInOnDoubleClick
        control.zoomInOnDoubleClick = false;

        // Subscribe to double click event
        control.OnMapDoubleClick += OnMapDoubleClick;
    }

    private void OnMapDoubleClick()
    {
        // Get input position
        Vector2 screenPosition = control.GetInputPosition();

        // Get 2D marker
        OnlineMapsMarker marker2d = OnlineMaps.instance.GetMarkerFromScreen(screenPosition);

        if (marker2d != null) return;

        // Get billboard and 3D marker
        // I know that this is not logical, but it works.
        OnlineMapsMarkerInstanceBase marker = control.GetBillboardMarkerFromScreen(screenPosition);

        // If marker == null then zoom in.
        if (marker == null) control.ZoomOnPoint(1, screenPosition);
    }
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Thu, 05 Jan 2017 12:49:03 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=1617#p1617</guid>
		</item>
		<item>
			<title><![CDATA[Re: map zoom in one level when tap the marker (billboard or 3d)]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=1616#p1616</link>
			<description><![CDATA[<p>Thank you for your reply.<br />Can you tell me how to quick fix this problem. In our case, we don&#039;t want the map is zoomed in</p>]]></description>
			<author><![CDATA[null@example.com (hung_nguyen)]]></author>
			<pubDate>Thu, 05 Jan 2017 12:29:23 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=1616#p1616</guid>
		</item>
		<item>
			<title><![CDATA[Re: map zoom in one level when tap the marker (billboard or 3d)]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=1614#p1614</link>
			<description><![CDATA[<p>Hello.</p><p>Both. We just missed it.<br />I think we rework this behavior.<br />Thank you pointed out to us on this issue.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Thu, 05 Jan 2017 11:56:17 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=1614#p1614</guid>
		</item>
		<item>
			<title><![CDATA[map zoom in one level when tap the marker (billboard or 3d)]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=1613#p1613</link>
			<description><![CDATA[<p>Hello</p><p>I found that map will zoom in one level when tap the marker (billboard or 3d) if the zoom in on double click is checked.<br />Is it a feature or a bug?</p><p>Thank you for your time.</p>]]></description>
			<author><![CDATA[null@example.com (hung_nguyen)]]></author>
			<pubDate>Thu, 05 Jan 2017 11:44:47 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=1613#p1613</guid>
		</item>
	</channel>
</rss>
