Join us online - 19th of November
Save your spot
For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.

Function addPolygon

  • Add a polygon with styling options.

    Parameters

    Returns {
        polygonLayerId: string;
        polygonOutlineLayerId: string;
        polygonSourceId: string;
    }

    • polygonLayerId: string

      ID of the fill layer

    • polygonOutlineLayerId: string

      ID of the outline layer (will be "" if no outline)

    • polygonSourceId: string

      ID of the source that contains the data

Was this helpful?