function
Source: layerFactory.ts ↗
createAreaLayer()
Creates an area layer configuration object.
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.