fix(basemap): trim header comments to match repo style

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
C3B2W23
2026-09-13 14:54:02 -07:00
co-authored by Claude Fable 5.1
parent 8f169f1ecc
commit 71550b4adf
3 changed files with 8 additions and 26 deletions
@@ -1,14 +1,7 @@
/**
* MapLibre basemap styles backed by CARTO raster tiles.
*
* CARTO now requires an API key for its basemap tiles; unkeyed requests
* return tiles stamped with an "API KEY REQUIRED" watermark. The key is
* read at request time by /api/basemap-config (CARTO_API_KEY on the
* frontend container) and threaded in here via `buildBasemapStyle`, so
* prebuilt Docker images pick it up without a rebuild.
*
* With no key configured the styles are unchanged from before, so existing
* deployments keep working exactly as they did (watermark included).
* MapLibre basemap styles on CARTO raster tiles. CARTO requires an API key
* (unkeyed tiles are watermarked); MaplibreViewer passes one from
* useBasemapConfig() via buildBasemapStyle().
*/
export type BasemapTheme = 'dark' | 'light';
@@ -49,6 +42,5 @@ export function buildBasemapStyle(theme: BasemapTheme, cartoApiKey?: string | nu
};
}
// Key-less defaults, kept for callers that do not need a CARTO key.
export const darkStyle = buildBasemapStyle('dark');
export const lightStyle = buildBasemapStyle('light');