Google maps polygons


  • Member
    aldonintra
    November 29, 2016 at 1:55 pm #599

    Hi. Please tell me how to add the polygons on the map?
    Add in woocommerce-nw-location-picker.php no work.
    var polygonCoords = [
    new google.maps.LatLng(59.95, 30.40),
    new google.maps.LatLng(59.95, 30.50),
    new google.maps.LatLng(60.05, 30.50),
    new google.maps.LatLng(59.95, 30.40)
    ];
    var polygon = new google.maps.Polyline({
    path: polygonCoords, // Координаты
    strokeColor: “#FF0000”, // Цвет обводки
    strokeOpacity: 0.8, // Прозрачность обводки
    strokeWeight: 2, // Ширина обводки
    fillColor: “#FF0000”, // Цвет заливки
    fillOpacity: 0.35 // Прозрачность заливки

    });
    polygon.setMap(map);

    Sorry, this forum is for verified users only. Please Login or Register to continue

Comments are closed.