mirror of
https://github.com/BigBodyCobain/Shadowbroker.git
synced 2026-12-05 09:03:39 +01:00
fix(basemap): correct style builder formatting
This commit is contained in:
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];
|
||||
|
||||
|
||||
Reference in new issue
Block a user