nidus-sync/ts/type/map.ts
Eli Ribble 9dccd21cee
RMO frontend checkpoint
* Create a nwe AddressAndMapLocator which abstracts out the behavior of
   selecting a location
 * Fix the overlay causing render errors on the MapLocator by getting
   rid of the overlay and just using a lock indicator
 * Fix MapLocator zooming in to the wrong place by not framing the
   markers
 * Remove Latlng from platform and just use Location with optional
   accuracy
 * Use nested types with form-encoded POST
 * Fix styles on water report page
2026-04-09 17:21:35 +00:00

19 lines
420 B
TypeScript

import maplibregl from "maplibre-gl";
import type { Address, Location } from "@/type/api";
export interface Camera {
location: Location;
zoom: number;
}
export interface Locator {
address: Address;
location: Location;
}
export type MoveEndEventInternal = maplibregl.MapLibreEvent<
| maplibregl.MapMouseEvent
| maplibregl.MapTouchEvent
| maplibregl.MapWheelEvent
| undefined
> & {
isInternalUpdate: boolean;
};