Type Alias TMapynaLayer

TMapynaLayer: {
    enabled: boolean;
    fetchCallback: ((data: TBoundingBox) => Promise<TLayerCallbackResponse[]> | null);
    idKey: string;
    infoWindow: TInfoWindow;
    label: string;
    latitudeKey: string;
    longitudeKey: string;
    markerStyles: TMapynaMarkerStyle;
    minZoom: number;
    name: string;
    type: "point" | "zone";
}

Type declaration

  • enabled: boolean

    Determines whether the layer is enabled or not

  • fetchCallback: ((data: TBoundingBox) => Promise<TLayerCallbackResponse[]> | null)

    The optional fetch callback function

  • idKey: string

    The key in the data source representing the unique identifier for each point

    Required if type is point

  • infoWindow: TInfoWindow

    The info window configuration

  • label: string

    Specifies the label or name of the layer

  • latitudeKey: string

    The key in the data source representing the latitude value for each point.

    Required if type is point

  • longitudeKey: string

    The key in the data source representing the longitude value for each point.

    Required if type is point

  • markerStyles: TMapynaMarkerStyle

    Allows customization of the marker appearance. Includes properties such as type, size, svg, and opacity

    Required if type is point

  • minZoom: number

    Sets the minimum zoom level at which the layer should be loaded and displayed on the map

  • name: string

    The name of the layer

  • type: "point" | "zone"

    The type of the layer

    point: Represents a layer with point markers.

    Note: Requires additional properties such as idKey, latitudeKey, longitudeKey, and markerStyles

    zone: Represents a layer with zone or polygon shapes