createAreaLayer()
Home > @gooddata/sdk-ui-geo > createAreaLayer
createAreaLayer() function
Creates an area layer configuration object.
Signature:
export declare function createAreaLayer(layer: Omit<IGeoLayerArea, "type" | "id">, id?: string): IGeoLayerArea;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
layer |
Omit<IGeoLayerArea, "type" | "id"> |
Layer configuration without type and id |
|
id |
string |
(Optional) Optional custom layer id, defaults to "area-layer" |
Returns:
Complete area layer configuration
Remarks
Use this factory to create area layer definitions for GeoChart. The factory ensures proper type and id assignment.