style = {
let doc = await FileAttachment("klokantech-basic-style.json").json();
Object.values(doc.sources).forEach(src => {
if (src.url) src.url = src.url.replace(/{key}/, maptilerKey);
});
doc.glyphs = doc.glyphs.replace(/{key}/, maptilerKey);
return doc;
}