<?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 — Best way to find index of markers?]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=1700</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1700&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Best way to find index of markers?.]]></description>
		<lastBuildDate>Mon, 22 Feb 2021 19:38:48 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Best way to find index of markers?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=7176#p7176</link>
			<description><![CDATA[<p>Thanks, I think I had it in my mind that I should have been able to access the IndexOf&lt;Marker&gt; right from the OnlineMapsMarkerManager class, since that is where the RemoveItem is.</p><p>Anywho, thank you!</p>]]></description>
			<author><![CDATA[null@example.com (mcb)]]></author>
			<pubDate>Mon, 22 Feb 2021 19:38:48 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=7176#p7176</guid>
		</item>
		<item>
			<title><![CDATA[Re: Best way to find index of markers?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=7175#p7175</link>
			<description><![CDATA[<p>Hello.</p><p>How to find the index of a marker:<br /></p><div class="codebox"><pre><code>int index = OnlineMapsMarkerManager.instance.items.IndexOf(marker);</code></pre></div><p>How to remove a specific marker:<br />OnlineMapsInteractiveElementManager.RemoveItem<br /><a href="https://infinity-code.com/doxygen/online-maps/classOnlineMapsInteractiveElementManager.html#a6b89066ddb82b573d10b713dc76b6b3b">https://infinity-code.com/doxygen/onlin … 3dc76b6b3b</a><br /></p><div class="codebox"><pre><code>OnlineMapsMarkerManager.RemoveItem(marker);</code></pre></div><p>How to remove all markers except the required one(s):<br />OnlineMapsInteractiveElementManager.RemoveAllItems<br /><a href="https://infinity-code.com/doxygen/online-maps/classOnlineMapsInteractiveElementManager.html#a6bb6d9d675600044ca4c788d6c977d19">https://infinity-code.com/doxygen/onlin … 8d6c977d19</a><br /></p><div class="codebox"><pre><code>OnlineMapsMarkerManager.RemoveAllItems(m =&gt; m != marker);</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Mon, 22 Feb 2021 19:14:21 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=7175#p7175</guid>
		</item>
		<item>
			<title><![CDATA[Best way to find index of markers?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=7174#p7174</link>
			<description><![CDATA[<p>I keep finding myself needing to write a lot of code to simply to remove specific markers from the map. </p><p>My current goto is to simply blow away all of the markers and redraw the ones I still want.</p><p>I&#039;m surprised that there isn&#039;t a `FindIndex` for the OnlineMapsMarkerManager class.</p><p>Maybe I&#039;m missing something, what is the preferred method of removing a specific marker from the map?</p>]]></description>
			<author><![CDATA[null@example.com (mcb)]]></author>
			<pubDate>Mon, 22 Feb 2021 18:52:58 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=7174#p7174</guid>
		</item>
	</channel>
</rss>
