Start working on UI
This commit is contained in:
parent
07208177fd
commit
8227b4141a
16 changed files with 701 additions and 581 deletions
|
@ -16,3 +16,19 @@ export function getCenter3D(extent: Extent) {
|
|||
(extent.zmax + extent.zmin) / 2
|
||||
);
|
||||
}
|
||||
|
||||
export async function getMetadata(serviceUrl: string) {
|
||||
const response = await fetch(serviceUrl, {
|
||||
method: "GET",
|
||||
mode: "cors",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
});
|
||||
|
||||
if (response.ok) {
|
||||
return response.json();
|
||||
} else {
|
||||
throw new Error("HTTP error status: " + response.status);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue