<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Dynamically Toggle Markers in Google Maps</title>
	<atom:link href="http://www.svennerberg.com/2009/06/dynamically-toggle-markers-in-google-maps/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.svennerberg.com/2009/06/dynamically-toggle-markers-in-google-maps/</link>
	<description>Web Applications Designed for Humans</description>
	<lastBuildDate>Fri, 03 Feb 2012 20:33:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Andrew</title>
		<link>http://www.svennerberg.com/2009/06/dynamically-toggle-markers-in-google-maps/#comment-513</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Wed, 17 Aug 2011 00:32:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=931#comment-513</guid>
		<description>Great script! Extremely useful thanks so much for posting! 

Is it possible however to have certain items in the legend checked and appear on default, and others that do not appear on default and must be clicked in order to be displayed? Help in this would really be a lifesaver!</description>
		<content:encoded><![CDATA[<p>Great script! Extremely useful thanks so much for posting! </p>
<p>Is it possible however to have certain items in the legend checked and appear on default, and others that do not appear on default and must be clicked in order to be displayed? Help in this would really be a lifesaver!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephan</title>
		<link>http://www.svennerberg.com/2009/06/dynamically-toggle-markers-in-google-maps/#comment-512</link>
		<dc:creator>Stephan</dc:creator>
		<pubDate>Fri, 10 Jun 2011 15:57:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=931#comment-512</guid>
		<description>Hi Sven,

may you allow me - as an up to date follow up on this topic - to refer to my blog post about dynamically toggling markers with the Google Maps JavaScript v3 API and how to apply as many custom filters, as you may need. The article can be found at: http://bexton.net/2011/06/03/the-setvisible-method-for-the-google-maps-marker-class-or-how-to-toggle-marker-icons-with-the-google-maps-v3-javascript-api/

Thank you and kind regards,
Stephan</description>
		<content:encoded><![CDATA[<p>Hi Sven,</p>
<p>may you allow me &#8211; as an up to date follow up on this topic &#8211; to refer to my blog post about dynamically toggling markers with the Google Maps JavaScript v3 API and how to apply as many custom filters, as you may need. The article can be found at: <a href="http://bexton.net/2011/06/03/the-setvisible-method-for-the-google-maps-marker-class-or-how-to-toggle-marker-icons-with-the-google-maps-v3-javascript-api/" rel="nofollow">http://bexton.net/2011/06/03/the-setvisible-method-for-the-google-maps-marker-class-or-how-to-toggle-marker-icons-with-the-google-maps-v3-javascript-api/</a></p>
<p>Thank you and kind regards,<br />
Stephan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NSairam</title>
		<link>http://www.svennerberg.com/2009/06/dynamically-toggle-markers-in-google-maps/#comment-511</link>
		<dc:creator>NSairam</dc:creator>
		<pubDate>Mon, 12 Apr 2010 14:05:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=931#comment-511</guid>
		<description>Hi,

  I have found an easy solution for this issue and hope it may help. I also tested thoroughly. The fix is given below.

private var mgr:MarkerManager;

if(mgr==null)
	        {
 	           mgr = new MarkerManager(map,{});
 	       }else
 	       {
 	       	 map.clearOverlays()
 	       	 mgr.clearMarkers();
 	       	 map.clearOverlays() 	  
 	       }

NOTE: I have pasted below the complete code for viewing a sample example implemented with the fix for markermanager utitlity bug.

//*****************************************************
 


  
  
    
    	
    
    
  
  
    &lt;![CDATA[
    	import mx.controls.Alert;
        import com.google.maps.MapEvent;
        import com.google.maps.Map;
        import com.google.maps.overlays.Marker;
        import com.google.maps.MapType;
        import com.google.maps.LatLng;
        import com.google.maps.LatLngBounds;
        import com.google.maps.extras.markermanager.MarkerManager;
        
        
        public var markerArr:Array = [];
        private var mgr:MarkerManager;
        
        private function createMarkers():void
        {
        	
	        var bounds:LatLngBounds = map.getLatLngBounds();
	        var southWest:LatLng = bounds.getSouthWest();
	        var northEast:LatLng = bounds.getNorthEast();
	        var lngSpan:Number = northEast.lng() - southWest.lng();
	        var latSpan:Number = northEast.lat() - southWest.lat();
	        markerArr=[]
	        for (var i:int = 0; i 
  

//*****************************************************</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>  I have found an easy solution for this issue and hope it may help. I also tested thoroughly. The fix is given below.</p>
<p>private var mgr:MarkerManager;</p>
<p>if(mgr==null)<br />
	        {<br />
 	           mgr = new MarkerManager(map,{});<br />
 	       }else<br />
 	       {<br />
 	       	 map.clearOverlays()<br />
 	       	 mgr.clearMarkers();<br />
 	       	 map.clearOverlays()<br />
 	       }</p>
<p>NOTE: I have pasted below the complete code for viewing a sample example implemented with the fix for markermanager utitlity bug.</p>
<p>//*****************************************************</p>
<p>    &lt;![CDATA[<br />
    	import mx.controls.Alert;<br />
        import com.google.maps.MapEvent;<br />
        import com.google.maps.Map;<br />
        import com.google.maps.overlays.Marker;<br />
        import com.google.maps.MapType;<br />
        import com.google.maps.LatLng;<br />
        import com.google.maps.LatLngBounds;<br />
        import com.google.maps.extras.markermanager.MarkerManager;</p>
<p>        public var markerArr:Array = [];<br />
        private var mgr:MarkerManager;</p>
<p>        private function createMarkers():void<br />
        {</p>
<p>	        var bounds:LatLngBounds = map.getLatLngBounds();<br />
	        var southWest:LatLng = bounds.getSouthWest();<br />
	        var northEast:LatLng = bounds.getNorthEast();<br />
	        var lngSpan:Number = northEast.lng() &#8211; southWest.lng();<br />
	        var latSpan:Number = northEast.lat() &#8211; southWest.lat();<br />
	        markerArr=[]<br />
	        for (var i:int = 0; i </p>
<p>//*****************************************************</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pär Lindholm</title>
		<link>http://www.svennerberg.com/2009/06/dynamically-toggle-markers-in-google-maps/#comment-510</link>
		<dc:creator>Pär Lindholm</dc:creator>
		<pubDate>Sat, 23 Jan 2010 15:25:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=931#comment-510</guid>
		<description>Thank you so much! I was getting pretty frustrated before stumbeling on your solution. Works just perfect.


/Pär</description>
		<content:encoded><![CDATA[<p>Thank you so much! I was getting pretty frustrated before stumbeling on your solution. Works just perfect.</p>
<p>/Pär</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabriel Svennerberg</title>
		<link>http://www.svennerberg.com/2009/06/dynamically-toggle-markers-in-google-maps/#comment-509</link>
		<dc:creator>Gabriel Svennerberg</dc:creator>
		<pubDate>Tue, 13 Oct 2009 19:53:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=931#comment-509</guid>
		<description>Ok, I suspected that it would occur in other libraries as well. Thanks for letting me know!</description>
		<content:encoded><![CDATA[<p>Ok, I suspected that it would occur in other libraries as well. Thanks for letting me know!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Holger</title>
		<link>http://www.svennerberg.com/2009/06/dynamically-toggle-markers-in-google-maps/#comment-508</link>
		<dc:creator>Holger</dc:creator>
		<pubDate>Mon, 12 Oct 2009 19:21:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.svennerberg.com/?p=931#comment-508</guid>
		<description>Thank you for sharing that. The same problem occurs with MarkerClusterer by Xiaoxi Wu.</description>
		<content:encoded><![CDATA[<p>Thank you for sharing that. The same problem occurs with MarkerClusterer by Xiaoxi Wu.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

