On this page

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?
SDK JS
Reference
addPolygon