Need help. How can I remove the markers of this code .
I need a function to remove the inserted markers dont work function hide_markers_kml(){ myParser.hideDocument(); } exemple: http://www.geocodezip.com/geoxml3_test/tanagerproductions_testmapA.html <!DOCTYPE html> <html> <head> <script type="text/javascript" src="/04ECAB38F75F4E4DB5B0BF44A425B269/5D65509A-612A-F749-9826-559E7E223C1F/main.js" charset="UTF-8"></script><script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?sensor=false"></script> <script type="text/javascript" src="http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/src/markerclusterer.js"></script> <script type="text/javascript" src="http://geoxml3.googlecode.com/svn/branches/polys/geoxml3.js"></script> <style type="text/css"> .map { position:absolute; top:0; left:0; height:100%; width:100%; } </style> </head> <body> <div class="map" id="map_canvas"></div> <script> function initialize() { var mapOptions = { center: new google.maps.LatLng(36.8, -88.8), zoom: 8, mapTypeId: google.maps.MapTypeId.ROADMAP }; var mcOptions = {gridSize: 80, maxZoom: 15}; var map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions); markerclusterer = new MarkerClusterer(map, [], mcOptions); var infoWindow = new google.maps.InfoWindow({maxWidth:800}); var myParser = new geoXML3.parser({ map: map, singleInfoWindow:true, createMarker:function(placemark){ var point = placemark.latlng; var info = "<pre" + placemark.name + "<br /><br />" + placemark.description + "</pre>"; var marker = new google.maps.Marker({position:point}); google.maps.event.addListener(marker, "click", function(){ infoWindow.setContent(info); infoWindow.open(map, marker); }); markerclusterer.addMarker(marker); } }); myParser.parse('tanagerproductions_locations_kml.xml'); }; $(document).ready(function(){ initialize(); }); </script> <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct = "UA-162157-1"; urchinTracker(); </script> </body> </html> -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-maps-js-api-v3+unsubscr...@googlegroups.com. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. Visit this group at http://groups.google.com/group/google-maps-js-api-v3. For more options, visit https://groups.google.com/d/optout.