isGeoLayerPushpin()
Home > @gooddata/sdk-ui-geo > isGeoLayerPushpin
isGeoLayerPushpin() function
Type guard for pushpin layer.
Signature:
export declare function isGeoLayerPushpin(layer: IGeoLayer): layer is IGeoLayerPushpin;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
layer |
The layer to check |
Returns:
layer is IGeoLayerPushpin
true if the layer is a pushpin layer, false otherwise
Remarks
Use this function to narrow an IGeoLayer to IGeoLayerPushpin when you need to access pushpin-specific properties like latitude, longitude, or size.