hmpps-open-layers-map
Version:
A native Web Component for displaying maps using OpenLayers.
16 lines (15 loc) • 545 B
TypeScript
import PointerInteraction from 'ol/interaction/Pointer';
import type { Coordinate } from 'ol/coordinate';
interface LocationOverlay {
showAtCoordinate: (coord: Coordinate, properties: Record<string, unknown>) => void;
close: () => void;
}
export default class FeaturePointerInteraction extends PointerInteraction {
private static readonly CLICK_DISTANCE_THRESHOLD;
private overlay;
private downPixel;
constructor(overlay: LocationOverlay);
private getIntersectingFeature;
private handlePointerEvent;
}
export {};