<?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 — Remove markers]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=511</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=511&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Remove markers.]]></description>
		<lastBuildDate>Mon, 17 Apr 2017 11:51:44 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Remove markers]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=2241#p2241</link>
			<description><![CDATA[<p>This is not the markers. This is a POI on Google Maps.<br />You can remove this by creating your own style using snazzymaps:<br /></p><div class="codebox"><pre><code>{
    &quot;featureType&quot;: &quot;poi&quot;,
    &quot;elementType&quot;: &quot;all&quot;,
    &quot;stylers&quot;: [
        {
            &quot;visibility&quot;: &quot;off&quot;
        }
    ]
},</code></pre></div><p>A step-by-step instruction on how to use snazzymaps in the documentation (section Styled Google Maps).</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Mon, 17 Apr 2017 11:51:44 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=2241#p2241</guid>
		</item>
		<item>
			<title><![CDATA[Re: Remove markers]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=2240#p2240</link>
			<description><![CDATA[<p>Hello Alex,</p><p>Thank you for a reply.<br />I attached your script in a demo scene and when I click on remove markers button the markers were removed which I added not the one which is provided by google is there any way to remove those markers?</p><p>I Attached one screen shot in that you can see orange markers which are predefined not created by me. I want to remove those markers.</p><p>Regards,<br />Ankit</p>]]></description>
			<author><![CDATA[null@example.com (ankitdave94)]]></author>
			<pubDate>Mon, 17 Apr 2017 05:02:53 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=2240#p2240</guid>
		</item>
		<item>
			<title><![CDATA[Re: Remove markers]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=2237#p2237</link>
			<description><![CDATA[<p>Hello.</p><p>I wrote a simple script to test RemoveAllMarkers.<br />Everything works well.</p><p>Script:<br /></p><div class="codebox"><pre><code>using UnityEngine;
using Random = System.Random;

public class SpawnAndRemoveMarkers:MonoBehaviour
{
    private void OnGUI()
    {
        if (GUILayout.Button(&quot;Spawn&quot;))
        {
            double tlx, tly, brx, bry;
            OnlineMaps.instance.GetCorners(out tlx, out tly, out brx, out bry);
            Random rnd = new Random();
            for (int i = 0; i &lt; 20; i++)
            {
                double lng = rnd.NextDouble() * (brx - tlx) + tlx;
                double lat = rnd.NextDouble() * (tly - bry) + bry;
                OnlineMaps.instance.AddMarker(lng, lat, i.ToString());
            }
        }
        if (GUILayout.Button(&quot;Remove all markers&quot;))
        {
            OnlineMaps.instance.RemoveAllMarkers();
            OnlineMaps.instance.Redraw();
        }
    }
}</code></pre></div><p>Please send your script where you create and delete the markers.<br />I will check it.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Sat, 15 Apr 2017 01:47:57 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=2237#p2237</guid>
		</item>
		<item>
			<title><![CDATA[Remove markers]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=2229#p2229</link>
			<description><![CDATA[<p>Hello there,</p><p>I can load a map and&nbsp; I can search places by using FindPlacesExample.cs and put my marker on that place.<br />I do not want the other markers which are predefined on a map.<br />I tried OnlineMaps.instance.RemoveAllMarkers(); but that does not work is there any way i can remove those predefined markers?</p>]]></description>
			<author><![CDATA[null@example.com (ankitdave94)]]></author>
			<pubDate>Fri, 14 Apr 2017 12:13:00 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=2229#p2229</guid>
		</item>
	</channel>
</rss>
