1. Home >
  2. Documentation >
  3. Overlays >
  4. polygon
 

polygon

This function adds a google.maps.Polygon.

Usage

Parameters

Note

Example

$("#test").gmap3({
  map:{
    options:{ 
      center:[24.886436490787712,-70.2685546875], 
      zoom:3
    }
  },
  polygon:{
    options:{
      strokeColor: "#FF0000",
      strokeOpacity: 0.8,
      strokeWeight: 2,
      fillColor: "#FF0000",
      fillOpacity: 0.35,
      paths:[
        [25.774252, -80.190262],
        [18.466465, -66.118292],
        [32.321384, -64.75737],
        [25.774252, -80.190262]
      ]
    }
  } 
});
Close