i want google map like this Multiple Polyline ,can Multiple select : i want  google map like this Multiple Polyline ,can Multiple select.
i want  google map like this Multiple Polyline ,can Multiple select.
i want  google map like this Multiple Polyline ,can Multiple select.
Multiple Polyline
[enter image description here][1]
<!-- language: lang-js -->

    var geocoder;
    var map;
    var polyline;

    positions = [new google.maps.LatLng(37.441883,-122.143019),
                 new google.maps.LatLng(37.45296,-122.181725)];
    function initialize() {
        var map = new google.maps.Map(
        document.getElementById("map_canvas"), {
            center: new google.maps.LatLng(37.4419, -122.1419),
            zoom: 13,
            mapTypeId: google.maps.MapTypeId.ROADMAP
        });
        
        $("#chkRouteLines").click(function () {
            if (!polyline || !polyline.setMap) {
              polyline = new google.maps.Polyline({
                path: positions,
                strokeColor: "#FF0000",
                strokeOpacity: 1.0,
                strokeWeight: 2,
                visible: true
              }); 
            }

        if ($(this).is(':checked')) {
            polyline.setMap(map);
        } else {
            polyline.setMap(null);
        }
    })


    }
    google.maps.event.addDomListener(window, "load", initialize);


<!-- language: lang-css -->

    html, body, #map_canvas {
        height: 90%;
        width: 100%;
        margin: 0px;
        padding: 0px

<!-- language: lang-html -->




    <div id="map_canvas" style="border: 2px solid #3872ac;"></div>
    <input id="chkRouteLines" value="click" type="checkbox" />


<!-- end snippet -->


  [1]: https://i.stack.imgur.com/ccbGV.png
i want  google map like this Multiple Polyline ,can Multiple select.
i want  google map like this Multiple Polyline ,can Multiple select.
i want  google map like this Multiple Polyline ,can Multiple select.

