Type Alias GeospatialHandlers
type GeospatialHandlers = {
pan: GeospatialPanHandler;
rotate: (yaw: number, pitch: number) => void;
zoom: (delta: number, toCursor: boolean) => void;
}
pan: GeospatialPanHandler;
rotate: (yaw: number, pitch: number) => void;
zoom: (delta: number, toCursor: boolean) => void;
}
Properties
pan
Handler for pan (globe drag) interactions — object because it needs start/update/stop lifecycle
rotate
rotate: (yaw: number, pitch: number) => void
Handler for rotate (tilt) interactions — accepts yaw (horizontal) and pitch (vertical) deltas
zoom
zoom: (delta: number, toCursor: boolean) => void
Handler for zoom interactions — accepts delta and whether to zoom toward cursor
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.