Add multiple polylines to a single Array
问题 I´m new working on Maps API V3, but I can´t find a way to put multiple polylines inside one array, so I can make them show/hide with a button (all at once). This is my code. // Setup the click event listener: simply set the map to center on Bogota var bogota = new google.maps.LatLng(4.697316, -74.044805); var directionsDisplay; var directionsService = new google.maps.DirectionsService(); // FUNCION INICIALIZE function initialize() { directionsDisplay = new google.maps.DirectionsRenderer();