javascript - google map multiple polyline -
i have google map sample multiple polygons. changed new google.maps.polygon function polyline as new google.maps.polyline({ paths: arr, strokecolor: '#ff0000', strokeopacity: 0.8, strokeweight: 2, fillcolor: '#ff0000', fillopacity: 0.35 }) but not drawing lines. fiddle here . how set object name infowindow content. tried with var infowindow = new google.maps.infowindow({ content: }); edited fiddle . a google.maps.polyline doesn't have paths property. change: new google.maps.polyline({ paths: arr, strokecolor: '#ff0000', strokeopacity: 0.8, strokeweight: 2, fillcolor: '#ff0000', fillopacity: 0.35 }) to: new google.maps.polyline({ path: arr, strokecolor: '#ff0000', s...