- Home >
- Documentation >
- Overlays >
- polygon
polygon
This function adds a google.maps.Polygon.
Usage
Parameters
- options {google.maps.PolygonOptions}
Note
- options.paths values are converted into google.maps.LatLng.
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]
]
}
}
});


