refactor
This commit is contained in:
@@ -1,15 +1,9 @@
|
||||
import { API_ENDPOINTS } from "@/api/config";
|
||||
import { requestJson } from "@/api/http";
|
||||
import { FeatureCollection } from "@/lib/useEditorState";
|
||||
import type { GeometriesBBoxQuery } from "@/types/api";
|
||||
import type { FeatureCollection } from "@/types/geo";
|
||||
|
||||
export type GeometriesBBoxQuery = {
|
||||
minLng: number;
|
||||
minLat: number;
|
||||
maxLng: number;
|
||||
maxLat: number;
|
||||
time?: number;
|
||||
entity_id?: string;
|
||||
};
|
||||
export type { GeometriesBBoxQuery } from "@/types/api";
|
||||
|
||||
function buildBBoxQueryString(params: GeometriesBBoxQuery): string {
|
||||
const query = new URLSearchParams({
|
||||
|
||||
Reference in New Issue
Block a user