draw path | draw area | localstorage layer state | add entities property parallel | timeline bar

This commit is contained in:
taDuc
2026-04-08 20:03:16 +07:00
parent 5ac5c4c0af
commit 4969c8cc57
15 changed files with 2056 additions and 74 deletions

View File

@@ -8,19 +8,23 @@ export type GeometriesBBoxQuery = {
maxLng: number;
maxLat: number;
time?: number;
entity_id?: string;
};
export type GeometryCreatePayload = {
geometry: Geometry;
time_start?: number | null;
time_end?: number | null;
kind?: string | null;
entity_id?: string | null;
entity_ids?: string[];
};
export type GeometryUpdatePayload = {
geometry: Geometry;
time_start?: number | null;
time_end?: number | null;
entity_id?: string | null;
entity_ids?: string[];
};
export type GeometryCreateResponse = {
@@ -44,6 +48,10 @@ function buildBBoxQueryString(params: GeometriesBBoxQuery): string {
query.set("time", String(params.time));
}
if (params.entity_id) {
query.set("entity_id", params.entity_id);
}
return query.toString();
}