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 2025-08-27 UTC."],[[["\u003cp\u003e\u003ccode\u003eGMSPolygon\u003c/code\u003e is an object used to represent a closed polygon on a map, including a filled region and an optional outline.\u003c/p\u003e\n"],["\u003cp\u003eIt is defined by a path (\u003ccode\u003eGMSPath\u003c/code\u003e) and can include optional holes represented by an array of \u003ccode\u003eGMSPath\u003c/code\u003e objects.\u003c/p\u003e\n"],["\u003cp\u003eThe polygon's appearance can be customized with properties like \u003ccode\u003estrokeWidth\u003c/code\u003e, \u003ccode\u003estrokeColor\u003c/code\u003e, and \u003ccode\u003efillColor\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eYou can render the polygon with geodesic correction and access its underlying Core Animation layer for advanced customization.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGMSPolygon\u003c/code\u003e provides a convenience constructor to quickly create polygons using a given path.\u003c/p\u003e\n"]]],["`GMSPolygon` defines a closed, filled region on a map using connected coordinates. Key properties include: `path` (defining the polygon's outline), `holes` (inner cutouts), `strokeWidth` (outline thickness), `strokeColor` (outline color), `fillColor` (region color), and `geodesic` (geodesic correction). The polygon has an associated `layer` for Core Animation. A `polygonWithPath` constructor initializes the object with a specific path.\n"],null,[]]