diff --git a/frontend/src/components/map/styles/mapStyles.ts b/frontend/src/components/map/styles/mapStyles.ts index d4916429..7ee421d2 100644 --- a/frontend/src/components/map/styles/mapStyles.ts +++ b/frontend/src/components/map/styles/mapStyles.ts @@ -1,3 +1,5 @@ +import type { StyleSpecification } from 'maplibre-gl'; + /** * ShadowBroker's zero-config basemap uses OpenFreeMap vector styles. * Operators who configure CARTO_API_KEY keep the existing CARTO raster @@ -39,7 +41,7 @@ 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(theme: BasemapTheme, cartoApiKey?: string | null) { +export function buildBasemapStyle(\n theme: BasemapTheme,\n cartoApiKey?: string | null,\n): string | StyleSpecification { const key = (cartoApiKey || '').trim(); if (!key) return OPENFREEMAP_STYLE_URLS[theme];