Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { fetch } from "https://esm.town/v/std/fetch";
export const dighimapperMultipleMaps = (async () => {
const url =
"https://annotations.allmaps.org/maps?imageservicedomain=images.dighimapper.eu";
const reponse = await fetch(url);
const annotations = await reponse.json();
let imageIds = new Set();
let imageIdsMultipleMaps = new Set();
for (let annotation of annotations.items) {
const imageId = annotation.target.service[0]["@id"];
if (imageIds.has(imageId)) {
imageIdsMultipleMaps.add(imageId);
}
imageIds.add(imageId);
}
return [...imageIdsMultipleMaps];
})();
October 23, 2023