New basemap styling is coming soon to Google Maps Platform. This update to map styling includes a new default color palette, modernized pins, and improvements to map experiences and usability. All map styles will be automatically updated in March 2025. For more information on availability and how to opt in earlier, see New map style for Google Maps Platform.
GMSPolygon defines a polygon that appears on the map. A polygon (like a polyline) defines a
series of connected coordinates in an ordered sequence; additionally, polygons form a closed loop
and define a filled region.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-15 UTC."],[[["`GMSPolygon` is an object used to represent a closed polygon on a map, including a filled region and an optional outline."],["It is defined by a path (`GMSPath`) and can include optional holes represented by an array of `GMSPath` objects."],["The polygon's appearance can be customized with properties like `strokeWidth`, `strokeColor`, and `fillColor`."],["You can render the polygon with geodesic correction and access its underlying Core Animation layer for advanced customization."],["`GMSPolygon` provides a convenience constructor to quickly create polygons using a given path."]]],[]]