API REFERENCE

GeoMapStreamSource

The GeoMapStreamSource type declaration and related types. Optional fields are marked with ?.

Type declaration

typescript
export interface GeoMapStreamSource {
  readonly length: number;
  readonly capacity: number;
  readonly dropped: number;
  push(point: GeoMapPointInput): void;
  pushBatch(points: ReadonlyArray<GeoMapPointInput>): void;
  shift(count: number): void;
  replace(points: ReadonlyArray<GeoMapPointInput>): void;
  snapshot(): GeoMapDeclaration[];
  subscribe(listener: (event: GeoMapStreamEvent) => void): () => void;
}