<?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 — Question about marker creation callback]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=1393</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1393&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Question about marker creation callback.]]></description>
		<lastBuildDate>Thu, 07 Nov 2019 15:27:44 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Question about marker creation callback]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=5732#p5732</link>
			<description><![CDATA[<p>I managed to throw my own marker-specific creation event, so i&#039;m good on my side, but it would probably be nice to have this callback (put it on a low priority todo-list ^^)<br />Thanks for the reply <img src="https://forum.infinity-code.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (Thibault)]]></author>
			<pubDate>Thu, 07 Nov 2019 15:27:44 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=5732#p5732</guid>
		</item>
		<item>
			<title><![CDATA[Re: Question about marker creation callback]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=5731#p5731</link>
			<description><![CDATA[<p>Hello.</p><p>OnMarkerAdded does nothing.<br />I missed this when marking obsolete members.<br />I&#039;m sorry that it misled you.</p><p>The current version of Online Maps has no way to track that a marker has been created.<br />If necessary, I can add such an API.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Wed, 06 Nov 2019 22:07:04 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=5731#p5731</guid>
		</item>
		<item>
			<title><![CDATA[Question about marker creation callback]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=5729#p5729</link>
			<description><![CDATA[<p>Hi<br />I started to play around with the UI bubble popup example.<br />Basically i want to show a ui popup on my 3D markers on click.</p><p>I tried to modify the UI Bubble Popup script this way :</p><p>i replaced this part : <br /></p><div class="codebox"><pre><code>if (datas != null)
            {
                foreach (CData data in datas)
                {
                    OnlineMapsMarker marker = OnlineMapsMarkerManager.CreateItem(data.longitude, data.latitude);
                    marker[&quot;data&quot;] = data;
                    marker.OnClick += OnMarkerClick;
                }
            }</code></pre></div><p>By this <br /></p><div class="codebox"><pre><code>OnlineMaps.instance.OnMarkerAdded += registerPopup;</code></pre></div><p>with :<br /></p><div class="codebox"><pre><code> private void registerPopup(OnlineMapsMarker marker)
 {
        Debug.Log(&quot;a new marker has been created&quot;);
        marker.OnClick += OnMarkerClick;
 }</code></pre></div><p>As it doesn&#039;t work (registerPopup is not getting called when i create my 3D marker), i think i misanderstound what OnlineMaps.instance.OnMarkerAdded does. Can you explain me what it does ?</p><p>-&gt; I&#039;m looking for a callback for marker creation</p><p>Thanks</p>]]></description>
			<author><![CDATA[null@example.com (Thibault)]]></author>
			<pubDate>Wed, 06 Nov 2019 16:21:16 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=5729#p5729</guid>
		</item>
	</channel>
</rss>
