isGeoLayerArea()
Home > @gooddata/sdk-ui-geo > isGeoLayerArea
isGeoLayerArea() function
Type guard for area layer.
Signature:
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.