fix(basemap): correct style builder formatting

This commit is contained in:
Shadowbroker committed 2026-10-06 15:52:18 -06:00
1 parent 951c776ec0
commit f282f8e2bb
1 file changed
+4 -1
@@ -41,7 +41,10 @@ export function cartoTileUrls(theme: BasemapTheme, cartoApiKey: string): string[
* Use OpenFreeMap by default. CARTO is retained as an opt-in compatibility
* path when an operator has already configured CARTO_API_KEY.
*/
export function buildBasemapStyle(\n theme: BasemapTheme,\n cartoApiKey?: string | null,\n): string | StyleSpecification {
export function buildBasemapStyle(
theme: BasemapTheme,
cartoApiKey?: string | null,
): string | StyleSpecification {
const key = (cartoApiKey || '').trim();
if (!key) return OPENFREEMAP_STYLE_URLS[theme];