Google Maps API v3 remove all polylines
Little background. I have a navigation setup for when you click on a certain navigation item, it creates markers on the map. If you click on a different navigation item, it removes the previous markers and sets up new ones. Well now I am working with polylines and trying to create the same concept here with the polylines , however I am having a difficult time. Here is what I have: // Global variable for array of lines var points= []; Setup my points. line1 = new google.maps.LatLng(line1Start, line1Finish); line2 = new google.maps.LatLng(line2Start, line2Finish); line3 = new google.maps.LatLng