Based on the problem description and picture, it sounds like you are adding the same polygon multiple times so it gets overlapped with itself.
When overlays overlap, the map view blends their colors together resulting in a darker appearance.
If polygonArray
contains unique polygons itself but addOverlays
is called multiple times, you should call removeOverlays
before addOverlays
if the existing polygons on the map are already included in polygonArray
.
Another possibility is that polygonArray
itself contains duplicate polygons.
Even if addOverlays
is called only once, the map will add multiple instances of the same polygon resulting in those overlays overlapping themselves giving them a darker color than expected.
To fix this, you should eliminate the duplication in polygonArray
.