Skip to content

Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.

708 B
Raw Blame
// SPDX-License-Identifier: MIT
// Copyright contributors to the kepler.gl project

import type {AnyModel} from '@anywidget/types';

export interface KeplerGlWidgetModel {
  data: Record<string, DatasetPayload>;
  config: KeplerGlConfig;
  height: number;
  mapbox_token: string;
  theme: string;
  app_name: string;
}

export interface DatasetPayload {
  id: string;
  data: unknown;
  format: 'csv' | 'json' | 'df' | 'arrow' | 'geojson' | 'geoarrow';
}

export interface KeplerGlConfig {
  version?: string;
  config?: {
    visState?: Record<string, unknown>;
    mapState?: Record<string, unknown>;
    mapStyle?: Record<string, unknown>;
  };
}

export type WidgetModel = AnyModel<KeplerGlWidgetModel>;