API

Type Alias GeospatialHandlers

Handler shape for geospatial camera interactions. Property names are the canonical interaction type strings used in inputMap entries. Single-method handlers are plain functions; multi-method handlers (pan) are objects.

type GeospatialHandlers = {
    pan: GeospatialPanHandler;
    rotate: (yaw: number, pitch: number) => void;
    zoom: (delta: number, toCursor: boolean) => void;
}
Index

Handler for pan (globe drag) interactions — object because it needs start/update/stop lifecycle

rotate: (yaw: number, pitch: number) => void

Handler for rotate (tilt) interactions — accepts yaw (horizontal) and pitch (vertical) deltas

zoom: (delta: number, toCursor: boolean) => void

Handler for zoom interactions — accepts delta and whether to zoom toward cursor