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
- addPolygon(
map: Map,
options: PolygonLayerOptions,
): {
polygonLayerId: string;
polygonOutlineLayerId: string;
polygonSourceId: string;
}Parameters
- map: Map
- options: PolygonLayerOptions
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
Add a polygon with styling options.