<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Can't create markers]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1281&amp;type=atom" />
	<updated>2019-07-01T14:39:48Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1281</id>
		<entry>
			<title type="html"><![CDATA[Re: Can't create markers]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=5255#p5255" />
			<content type="html"><![CDATA[<p>It was my fault, I had a condition prior to it that wasn&#039;t allowing it to actually make the marker. After that I was able to figure it out, the quick video you made really helped.</p><p>Thanks for your quick responses.</p>]]></content>
			<author>
				<name><![CDATA[Learning2Swim]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=879</uri>
			</author>
			<updated>2019-07-01T14:39:48Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=5255#p5255</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Can't create markers]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=5254#p5254" />
			<content type="html"><![CDATA[<p>This is most likely due to the same reason for which no markers are created.<br />I just checked, and for me it works correctly.</p><p>Just to make sure:<br />Do you have one instance of the map in the scene?</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2019-06-28T19:28:11Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=5254#p5254</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Can't create markers]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=5253#p5253" />
			<content type="html"><![CDATA[<p>I&#039;m doing the same thing, not getting the same results.</p><p>What&#039;s also odd is the &quot;Add Marker by M&quot; option doesn&#039;t work.<br />When I press either &quot;m&quot; or &quot;M&quot; during runtime, a marker is never added. Only added if I click that actual&quot;Add Marker&quot; button.</p><p>Anyways, thanks for the video above showing how you set it up. I&#039;m going to keep trying to figure out where I&#039;m coming up short.</p>]]></content>
			<author>
				<name><![CDATA[Learning2Swim]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=879</uri>
			</author>
			<updated>2019-06-28T18:50:17Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=5253#p5253</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Can't create markers]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=5252#p5252" />
			<content type="html"><![CDATA[<p>I just tried your script for UI Image Control, and the first way works correctly.<br />The second and third ways work, but the marker is created in the wrong location, because you use the wrong order of parameters: X - longitude, Y - latitude.</p><p>Video:<br /><a href="https://www.dropbox.com/s/qaqi1p7il5kkq6m/UI%20Image%20Marker%20Test.mp4?dl=0">https://www.dropbox.com/s/qaqi1p7il5kkq … t.mp4?dl=0</a></p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2019-06-28T17:47:47Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=5252#p5252</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Can't create markers]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=5251#p5251" />
			<content type="html"><![CDATA[<p>Online Maps Marker Manager is already attached to the map GameObject. I tried to remove it so that I can add it during runtime, and it says that I can&#039;t because Online Maps UI Image Control needs it.</p><p>edit: It&#039;s also attached/referenced in the editor, and there are no errors.</p><p>Pic attached</p>]]></content>
			<author>
				<name><![CDATA[Learning2Swim]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=879</uri>
			</author>
			<updated>2019-06-28T17:19:34Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=5251#p5251</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Can't create markers]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=5250#p5250" />
			<content type="html"><![CDATA[<p>Hello.</p><p>You need to manually add Online Maps Marker Manager to the map GameObject, and all your ways will work.<br />Or you can add it using a script:<br /></p><div class="codebox"><pre><code>OnlineMaps.instance.gameObject.AddComponent&lt;OnlineMapsMarkerManager&gt;();</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2019-06-28T17:11:29Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=5250#p5250</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Can't create markers]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=5249#p5249" />
			<content type="html"><![CDATA[<p>I&#039;m trying to create marker and can&#039;t get it to work. They don&#039;t even get added to the ONLINE MAPS MARKER MANAGER components when I attempt to create a marker. Here are the different ways I have tried:</p><p>public OnlineMapsMarkerManager markerManager;<br />public OnlineMapsMarker markerHotspot;</p><p>void Start()<br />{<br />&nbsp; &nbsp; &nbsp;//1ST ATTEMPT<br />&nbsp; &nbsp; &nbsp;markerManager.Create(new Vector2(newLongitude, newLatitude), textureHotspot, &quot;hotspot!&quot;);&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;//2ND ATTEMPT&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;markerHotspot = OnlineMapsMarkerManager.CreateItem(new Vector2(newLatitude, newLongitude), &quot;hotspot&quot;);</p><p>&nbsp; &nbsp; &nbsp;//3RD ATTEMPT<br />&nbsp; &nbsp; &nbsp;markerHotspot = OnlineMaps.instance.AddMarker(new Vector2(newLatitude, newLongitude), &quot;hotspot&quot;); <br />}</p><br /><p>None of these attempts work. What am I missing?<br />Thanks</p>]]></content>
			<author>
				<name><![CDATA[Learning2Swim]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=879</uri>
			</author>
			<updated>2019-06-28T17:06:45Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=5249#p5249</id>
		</entry>
</feed>
