<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Remove markers]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=511&amp;type=atom" />
	<updated>2017-04-17T11:51:44Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=511</id>
		<entry>
			<title type="html"><![CDATA[Re: Remove markers]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2241#p2241" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2017-04-17T11:51:44Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2241#p2241</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Remove markers]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2240#p2240" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[ankitdave94]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=434</uri>
			</author>
			<updated>2017-04-17T05:02:53Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2240#p2240</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Remove markers]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2237#p2237" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2017-04-15T01:47:57Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2237#p2237</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Remove markers]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2229#p2229" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[ankitdave94]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=434</uri>
			</author>
			<updated>2017-04-14T12:13:00Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2229#p2229</id>
		</entry>
</feed>
