<?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 — Android: Map Drag locked to left and right + Not click under UI]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=1767</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1767&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Android: Map Drag locked to left and right + Not click under UI.]]></description>
		<lastBuildDate>Thu, 13 May 2021 18:39:19 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Android: Map Drag locked to left and right + Not click under UI]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=7447#p7447</link>
			<description><![CDATA[<p>Update on the map dragging.</p><p>My map game object was rotated [ -90, 0, 0 ], resetting it back to zero resolves the issue.<br />Maybe this will help someone down the road!</p>]]></description>
			<author><![CDATA[null@example.com (mcb)]]></author>
			<pubDate>Thu, 13 May 2021 18:39:19 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=7447#p7447</guid>
		</item>
		<item>
			<title><![CDATA[Re: Android: Map Drag locked to left and right + Not click under UI]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=7441#p7441</link>
			<description><![CDATA[<p>Thank you sending email now.</p><p>I will continue to investigate what might be happening regarding the zoom, thanks!</p>]]></description>
			<author><![CDATA[null@example.com (mcb)]]></author>
			<pubDate>Wed, 12 May 2021 21:58:27 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=7441#p7441</guid>
		</item>
		<item>
			<title><![CDATA[Re: Android: Map Drag locked to left and right + Not click under UI]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=7440#p7440</link>
			<description><![CDATA[<p>1. I found and fixed the problem. <br />Send me an email (support@infinity-code.com) and I will send you a fix.</p><p>2. Unfortunately, I don&#039;t know what the problem might be.<br />No one has ever written to me about such a problem and on my side the map moves vertically correctly.<br />Here you need to debug what is happening in the map and your scripts.<br />You can do it yourself, or send me your project by email.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Wed, 12 May 2021 21:16:23 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=7440#p7440</guid>
		</item>
		<item>
			<title><![CDATA[Re: Android: Map Drag locked to left and right + Not click under UI]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=7437#p7437</link>
			<description><![CDATA[<p>Small Update, it does appear as though I am now blocking map touches under the GUI, but OnMapClick seems to be holding onto the last touched position of the map.</p><p>What I mean, is I have a panel on the right of the screen that the user can select which model to place on the map. If I click on one of the buttons, it immediately spawns my marker at the last place I touched the map--for instance, where I touched to drag, or zoom the map.</p><p>I do notice that Not Interact Under UI gets set to false after loading--so having it set to true really did nothing. </p><p>I see that you set it to false in Start if forwarders.Count == 0. If I set it back to true, I can&#039;t interact with the map at all, regardless of what I click on.</p><br /><p>Also, I can&#039;t even drag the map vertically in the editor.&nbsp; But I do see that if I zoom up to level 10 or lower, that I can drag vertically.&nbsp; How do I resolve this?</p>]]></description>
			<author><![CDATA[null@example.com (mcb)]]></author>
			<pubDate>Wed, 12 May 2021 18:25:58 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=7437#p7437</guid>
		</item>
		<item>
			<title><![CDATA[Re: Android: Map Drag locked to left and right + Not click under UI]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=7436#p7436</link>
			<description><![CDATA[<p>Thanks for your response!</p><p>It doesn&#039;t matter what zoom level I&#039;m at, I can only go left or right. I immediately zoom to level 14 when the app loads.</p><p>Now I do have my render texture set to the resolution of my screen (2280x1080), and my map set to 1024x1024, if that matters.</p><br /><p>Regarding the Not Interact Under GUI, I have it set to on, but I still can add markers under the UI Panels.</p>]]></description>
			<author><![CDATA[null@example.com (mcb)]]></author>
			<pubDate>Wed, 12 May 2021 17:59:37 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=7436#p7436</guid>
		</item>
		<item>
			<title><![CDATA[Re: Android: Map Drag locked to left and right + Not click under UI]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=7435#p7435</link>
			<description><![CDATA[<p>Hello.</p><p>1. Most likely your map already has a minimum zoom.<br />This is not some kind of constant, this is a zoom at which the entire Earth is displayed, and it depends on the width and height of the map.<br />If you increase the zoom, can you move vertically?<br />If so, then this is exactly the problem.</p><p>2. Online Maps / Troubleshooting / Not Interact Under GUI - ON.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Wed, 12 May 2021 17:35:36 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=7435#p7435</guid>
		</item>
		<item>
			<title><![CDATA[Android: Map Drag locked to left and right + Not click under UI]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=7434#p7434</link>
			<description><![CDATA[<p>Sorry to hit you hit with 2 questions here, but I&#039;m stuck, and you&#039;ve always responded quickly.</p><p>First, I&#039;m displaying the map via a Raw Image, and using the Raw Image Touch Forwarder, and it all works except I can&#039;t drag the map vertically. Pinch to zoom, Left and right drags work as expected, but up and down also trigger left and right. Any ideas what might be causing that?</p><p>Second question, I have struggled to keep from triggering OnMapClick events from UI interactions. I&#039;ve tried all the usual things, ex EventSystem.current.IsPointerOverGameObject(), which I&#039;ve never understood because UI elements like buttons are game objects, but I digress. Do you have any best practices for blocking the map, especially on mobile devices so I can interact with my GUI? As mentioned above, I&#039;m displaying the map as a Raw Image on my canvas.</p><p>Thanks in advance!</p>]]></description>
			<author><![CDATA[null@example.com (mcb)]]></author>
			<pubDate>Wed, 12 May 2021 17:27:52 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=7434#p7434</guid>
		</item>
	</channel>
</rss>
