event.ts 427 B

12345678910111213141516171819
  1. import { FeatureLike } from 'ol/Feature';
  2. import { DataHoverPayload } from '@grafana/data';
  3. import { MapLayerState } from './types';
  4. export interface GeomapLayerHover {
  5. layer: MapLayerState;
  6. features: FeatureLike[];
  7. }
  8. export interface GeomapHoverPayload extends DataHoverPayload {
  9. // List of layers
  10. layers?: GeomapLayerHover[];
  11. // Global mouse coordinates for the hover layer
  12. pageX: number;
  13. pageY: number;
  14. }