GMSPolygonLayer is a subclass of GMSOverlayLayer, available on a per-polygon basis, that
allows animation of several properties of its associated GMSPolygon.
Note that this CALayer is never actually rendered directly, as GMSMapView is provided
entirely via an OpenGL layer. As such, adjustments or animations to ‘default’ properties of
CALayer will not have any effect.
[[["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\u003eGMSPolygonLayer\u003c/code\u003e is a subclass of \u003ccode\u003eGMSOverlayLayer\u003c/code\u003e used for animating properties of its associated \u003ccode\u003eGMSPolygon\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThis layer isn't directly rendered, as \u003ccode\u003eGMSMapView\u003c/code\u003e utilizes an OpenGL layer for rendering.\u003c/p\u003e\n"],["\u003cp\u003eCustomizable properties include \u003ccode\u003estrokeWidth\u003c/code\u003e for outline width, \u003ccode\u003estrokeColor\u003c/code\u003e for outline color, and \u003ccode\u003efillColor\u003c/code\u003e for the polygon's fill color.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003estrokeColor\u003c/code\u003e and \u003ccode\u003efillColor\u003c/code\u003e are assign properties and the \u003ccode\u003eGMSPolygon\u003c/code\u003e is expected to manage their memory.\u003c/p\u003e\n"]]],["`GMSPolygonLayer`, a subclass of `GMSOverlayLayer`, enables animation of properties for `GMSPolygon`. Key properties include `strokeWidth`, which defines the polygon outline's width in screen points; `strokeColor`, the outline's color; and `fillColor`, the polygon's fill color. These colors are managed by the polygon. Direct adjustments to default `CALayer` properties have no effect as rendering is handled by `OpenGL` within `GMSMapView`.\n"],null,[]]