2026-04-04 02:32:09 +00:00
|
|
|
import maplibregl from "maplibre-gl";
|
2026-04-10 14:20:04 +00:00
|
|
|
import { Address, Location } from "@/type/api";
|
2026-04-04 02:32:09 +00:00
|
|
|
|
2026-04-10 14:20:04 +00:00
|
|
|
export class Camera {
|
2026-04-04 02:32:09 +00:00
|
|
|
location: Location;
|
|
|
|
|
zoom: number;
|
2026-04-10 14:20:04 +00:00
|
|
|
constructor(location: Location = new Location(), zoom: number = 0) {
|
|
|
|
|
this.location = location;
|
|
|
|
|
this.zoom = zoom;
|
|
|
|
|
}
|
2026-04-04 02:32:09 +00:00
|
|
|
}
|
|
|
|
|
export type MoveEndEventInternal = maplibregl.MapLibreEvent<
|
|
|
|
|
| maplibregl.MapMouseEvent
|
|
|
|
|
| maplibregl.MapTouchEvent
|
|
|
|
|
| maplibregl.MapWheelEvent
|
|
|
|
|
| undefined
|
|
|
|
|
> & {
|
|
|
|
|
isInternalUpdate: boolean;
|
|
|
|
|
};
|