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
Was this helpful?
Add a polygon with styling options.