-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply debug options to all endpoints
- Loading branch information
1 parent
7469bb5
commit bd0993f
Showing
4 changed files
with
19 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { DebugOptions } from "@americana/maplibre-shield-generator/src/types.js"; | ||
import config from "./config.js"; | ||
|
||
export const debugOptions: DebugOptions = {}; | ||
|
||
if (config.SHIELD_TEXT_HALO_COLOR_OVERRIDE) { | ||
debugOptions.shieldTextHaloColor = config.SHIELD_TEXT_HALO_COLOR_OVERRIDE; | ||
} | ||
|
||
if (config.SHIELD_TEXT_BBOX_COLOR) { | ||
debugOptions.shieldTextBboxColor = config.SHIELD_TEXT_BBOX_COLOR; | ||
} | ||
|
||
export { debugOptions as default } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters