use maptiler satellite

This commit is contained in:
vcoppe
2026-05-25 14:45:03 +02:00
parent 161c664e08
commit 88e301e2a2
2 changed files with 17 additions and 8 deletions
+12
View File
@@ -199,6 +199,18 @@ export class StyleManager {
const style = await response.json();
return style;
} else {
for (const source in styleInfo.sources) {
const src = styleInfo.sources[source];
if (
src &&
typeof src === 'object' &&
'url' in src &&
typeof src.url === 'string' &&
src.url.includes(maptilerKeyPlaceHolder)
) {
src.url = src.url.replace(maptilerKeyPlaceHolder, this._maptilerKey);
}
}
return styleInfo;
}
}