function
Source: layerFactory.ts ↗
createPushpinLayer()
Creates a pushpin layer configuration object.
export declare function createPushpinLayer(layer: Omit<IGeoLayerPushpin, "type" | "id">, id?: string): IGeoLayerPushpin;
Parameters
Parameter | Type | Description |
|---|---|---|
layer | Omit<IGeoLayerPushpin, “type” | “id”> | Layer configuration without type and id |
id | string | (Optional) Optional custom layer id, defaults to “pushpin-layer” |
Returns
Complete pushpin layer configuration
Remarks
Use this factory to create pushpin layer definitions for GeoChart. The factory ensures proper type and id assignment.