260715_0
This commit is contained in:
@@ -163,3 +163,34 @@ export async function fetchSurfaceStatus(projectId: string): Promise<SurfaceStat
|
||||
method: "GET",
|
||||
});
|
||||
}
|
||||
|
||||
export interface VWorldMeta {
|
||||
x_min: number;
|
||||
x_max: number;
|
||||
y_min: number;
|
||||
y_max: number;
|
||||
width_meters: number;
|
||||
height_meters: number;
|
||||
center_x: number;
|
||||
center_y: number;
|
||||
lon_min: number;
|
||||
lon_max: number;
|
||||
lat_min: number;
|
||||
lat_max: number;
|
||||
}
|
||||
|
||||
export function getVWorldMapUrl(projectId: string, layerName: string): string {
|
||||
return `${API_BASE_URL}/projects/${projectId}/vworld-map?layer_name=${layerName}`;
|
||||
}
|
||||
|
||||
export async function fetchVWorldMeta(projectId: string, layerName: string): Promise<VWorldMeta> {
|
||||
return requestJson<VWorldMeta>(`/projects/${projectId}/vworld-meta?layer_name=${layerName}`, {
|
||||
method: "GET",
|
||||
});
|
||||
}
|
||||
|
||||
export async function fetchGisGeoJson(projectId: string, layer: string): Promise<any> {
|
||||
return requestJson<any>(`/projects/${projectId}/geojson?layer=${encodeURIComponent(layer)}`, {
|
||||
method: "GET",
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user