I am using react google maps library to draw the polygon in my project. Polygon is showing in map, closing the paths automatically. I just want to highlight the area in the map without closing the paths. Is it possible to do it ? This is the image of polygon currently showing
I just want to highlight area.
<Polygon
path={i[item]}
options={{
strokeColor: "purple",
strokeOpacity: 0,
// strokeWeight: 2,
fillColor: "purple",
fillOpacity: 0.2,
}}
></Polygon>
This is the way I am doing to draw the polygons. Paths are structured into array of lat and lng