<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Android: Map Drag locked to left and right + Not click under UI]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1767&amp;type=atom" />
	<updated>2021-05-13T18:39:19Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1767</id>
		<entry>
			<title type="html"><![CDATA[Re: Android: Map Drag locked to left and right + Not click under UI]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7447#p7447" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[mcb]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1341</uri>
			</author>
			<updated>2021-05-13T18:39:19Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7447#p7447</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Android: Map Drag locked to left and right + Not click under UI]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7441#p7441" />
			<content type="html"><![CDATA[<p>Thank you sending email now.</p><p>I will continue to investigate what might be happening regarding the zoom, thanks!</p>]]></content>
			<author>
				<name><![CDATA[mcb]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1341</uri>
			</author>
			<updated>2021-05-12T21:58:27Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7441#p7441</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Android: Map Drag locked to left and right + Not click under UI]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7440#p7440" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2021-05-12T21:16:23Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7440#p7440</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Android: Map Drag locked to left and right + Not click under UI]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7437#p7437" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[mcb]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1341</uri>
			</author>
			<updated>2021-05-12T18:25:58Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7437#p7437</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Android: Map Drag locked to left and right + Not click under UI]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7436#p7436" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[mcb]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1341</uri>
			</author>
			<updated>2021-05-12T17:59:37Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7436#p7436</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Android: Map Drag locked to left and right + Not click under UI]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7435#p7435" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2021-05-12T17:35:36Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7435#p7435</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Android: Map Drag locked to left and right + Not click under UI]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7434#p7434" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[mcb]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1341</uri>
			</author>
			<updated>2021-05-12T17:27:52Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7434#p7434</id>
		</entry>
</feed>
