function
Source: index.ts ↗
isGeoLayerPushpin()
Type guard for pushpin layer.
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.