forked from MapComplete/MapComplete
Fix summary URL
This commit is contained in:
parent
8390b9c541
commit
7dc4755a1d
2 changed files with 3 additions and 3 deletions
|
@ -21,9 +21,9 @@
|
||||||
"oauth_secret": "NBWGhWDrD3QDB35xtVuxv4aExnmIt4FA_WgeLtwxasg",
|
"oauth_secret": "NBWGhWDrD3QDB35xtVuxv4aExnmIt4FA_WgeLtwxasg",
|
||||||
"url": "https://www.openstreetmap.org"
|
"url": "https://www.openstreetmap.org"
|
||||||
},
|
},
|
||||||
"mvt_layer_server": "https://proxy.mapcomplete.org/public.{type}_{layer}/{z}/{x}/{y}.pbf",
|
"mvt_layer_server": "https://cache.mapcomplete.org/public.{type}_{layer}/{z}/{x}/{y}.pbf",
|
||||||
"#summary_server": "Should be the endpoint; appending status.json should work",
|
"#summary_server": "Should be the endpoint; appending status.json should work",
|
||||||
"summary_server": "https://proxy0.mapcomplete.org/",
|
"summary_server": "https://cache.mapcomplete.org/",
|
||||||
"geoip_server": "https://ipinfo.mapcomplete.org/",
|
"geoip_server": "https://ipinfo.mapcomplete.org/",
|
||||||
"error_server": "https://report.mapcomplete.org/report",
|
"error_server": "https://report.mapcomplete.org/report",
|
||||||
"disabled:oauth_credentials": {
|
"disabled:oauth_credentials": {
|
||||||
|
|
|
@ -114,7 +114,7 @@ export class SummaryTileSource extends DynamicTileSource {
|
||||||
): Store<Feature<Point>[]> {
|
): Store<Feature<Point>[]> {
|
||||||
const [z, x, y] = Tiles.tile_from_index(tileIndex)
|
const [z, x, y] = Tiles.tile_from_index(tileIndex)
|
||||||
let coordinates = Tiles.centerPointOf(z, x, y)
|
let coordinates = Tiles.centerPointOf(z, x, y)
|
||||||
const url = `${cacheserver}/${layersSummed}/${z}/${x}/${y}.json`
|
const url = `${cacheserver}/summary/${layersSummed}/${z}/${x}/${y}.json`
|
||||||
const count = UIEventSource.FromPromiseWithErr(Utils.downloadJson(url))
|
const count = UIEventSource.FromPromiseWithErr(Utils.downloadJson(url))
|
||||||
return count.mapD((count) => {
|
return count.mapD((count) => {
|
||||||
if (count["error"] !== undefined) {
|
if (count["error"] !== undefined) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue