Docs: update docs and status page for pg_tile_server

This commit is contained in:
Pieter Vander Vennet 2024-12-13 14:41:28 +01:00
parent de782d7356
commit cc28932534
2 changed files with 40 additions and 3 deletions

View file

@ -1,5 +1,5 @@
<script lang="ts">
import { Store, Stores, UIEventSource } from "../../Logic/UIEventSource"
import { ImmutableStore, Store, Stores, UIEventSource } from "../../Logic/UIEventSource"
import StatusIcon from "./StatusIcon.svelte"
import type { MCService } from "./MCService"
import ServiceIndicator from "./ServiceIndicator.svelte"
@ -203,6 +203,29 @@
})
}
{
const summaryTileServer = Constants.VectorTileServer
// "mvt_layer_server": "https://cache.mapcomplete.org/public.{type}_{layer}/{z}/{x}/{y}.pbf",
const status = testDownload(Utils.SubstituteKeys(summaryTileServer, {
type: "pois",
layer: "food",
z: 14,
x: 8848,
y: 5828
}))
services.push({
name: summaryTileServer,
status: status.mapD((s) => {
if (s["error"]) {
return "offline"
}
return "online"
}),
message: new ImmutableStore("See SettingUpPSQL.md to fix")
})
}
{
const s = Constants.countryCoderEndpoint
const status = testDownload(s + "/0.0.0.json")