Type Alias CollectionMarkerAttributes<TUserData>

CollectionMarkerAttributes: Attributes<TUserData> & {
    key: (data: TUserData) => string;
}

Markers in a collection can have additional (virtual) attributes that are defined here.

Type Parameters

  • TUserData

Type declaration

  • key: (data: TUserData) => string

    The key function used to create string ids for the records in the collection. Specifying this function is highly recommended when the data needs to be updated.