<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — OnClick event for lines]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1765&amp;type=atom" />
	<updated>2021-07-30T09:47:34Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1765</id>
		<entry>
			<title type="html"><![CDATA[Re: OnClick event for lines]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7629#p7629" />
			<content type="html"><![CDATA[<p>I just tested the click on the line and it works correctly on my side.<br />Video:<br /><a href="https://www.dropbox.com/s/7gvn3d3x77frcmn/Online%20Maps%20-%20Test%20Click%20On%20Line.mp4?dl=0">https://www.dropbox.com/s/7gvn3d3x77frc … e.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>2021-07-30T09:47:34Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7629#p7629</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: OnClick event for lines]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7626#p7626" />
			<content type="html"><![CDATA[<p>Hi there,</p><p>I must be doing something wrong then:</p><div class="codebox"><pre><code>OnlineMapsDrawingElement line = OnlineMapsDrawingElementManager.AddItem(new OnlineMapsDrawingLine(points, Color, 0.75f));
line.tooltip = &quot;Tooltip&quot;;
line.OnClick += Select_Route;

public void Select_Route(OnlineMapsDrawingElement line)
{
       Debug.Log(&quot;TEST&quot;);
}</code></pre></div><p>Line is displayed correctly, but the function not triggered. Tooltip is working. Any idea would be highly appreciated!</p>]]></content>
			<author>
				<name><![CDATA[DDQ]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1662</uri>
			</author>
			<updated>2021-07-29T18:02:43Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7626#p7626</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: OnClick event for lines]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7431#p7431" />
			<content type="html"><![CDATA[<p>Thank you, got it working <img src="https://forum.infinity-code.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[gpgamingx]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1614</uri>
			</author>
			<updated>2021-05-11T22:37:19Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7431#p7431</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: OnClick event for lines]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7430#p7430" />
			<content type="html"><![CDATA[<p>Hello.</p><p>In exactly the same way as for markers.<br /><a href="https://infinity-code.com/doxygen/online-maps/classOnlineMapsDrawingElement.html#a2831c1d3f6d40e4d6e520f7c3bd5d9b1">https://infinity-code.com/doxygen/onlin … 7c3bd5d9b1</a></p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2021-05-11T22:26:39Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7430#p7430</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[OnClick event for lines]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7429#p7429" />
			<content type="html"><![CDATA[<p>Hello, I&#039;m currently using Online Maps Drawing API to create lines from point A to Point B (2d Map) but was wounding how to add an OnClick Event for the line just like the Marker OnClick event seen in the MarkerClickExample. Any help is greatly appreciated!!</p><p>Thanks</p>]]></content>
			<author>
				<name><![CDATA[gpgamingx]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1614</uri>
			</author>
			<updated>2021-05-11T22:17:39Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7429#p7429</id>
		</entry>
</feed>
