function
Source: index.ts ↗
isGeoLayerArea()
Type guard for area layer.
export declare function isGeoLayerArea(layer: IGeoLayer): layer is IGeoLayerArea;
Parameters
Parameter | Type | Description |
|---|---|---|
layer | The layer to check |
Returns
layer is IGeoLayerArea
true if the layer is an area layer, false otherwise
Remarks
Use this function to narrow an IGeoLayer to IGeoLayerArea when you need to access area-specific properties like area.