<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Question about marker creation callback]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1393&amp;type=atom" />
	<updated>2019-11-07T15:27:44Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1393</id>
		<entry>
			<title type="html"><![CDATA[Re: Question about marker creation callback]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=5732#p5732" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Thibault]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=821</uri>
			</author>
			<updated>2019-11-07T15:27:44Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=5732#p5732</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Question about marker creation callback]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=5731#p5731" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2019-11-06T22:07:04Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=5731#p5731</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Question about marker creation callback]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=5729#p5729" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Thibault]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=821</uri>
			</author>
			<updated>2019-11-06T16:21:16Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=5729#p5729</id>
		</entry>
</feed>
