draw path | draw area | localstorage layer state | add entities property parallel | timeline bar
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user