Im not sure how to clear markers from map once I click the get directions 
button. I have eleven markers when map loads, want to remove them markers 
when I click get directions and only the markers A-B show up. Here is a link 
to page, only using this free host for testing wise before i put everything 
on regular host. www.badboyz.freehostingcloud.com    Only that page is 
working no other pages uploaded. I tried on the button 
onclick="clearMarkers" and used this with the function clearMarkers;     
 function clearMarkers (map, locations) { 
                                        for(var i=0; i < locations.length; 
i++){ 
                                       var court = locations[i];
                                        locations[i].setMap(null); 
                                              } 
                                         locations = setMarkers(null); 
                                              }; 
 
 
                                                                             
Thanks
                                                                                
     
Kevin

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to