Skip to content

Commit

Permalink
Add bannerMap to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeLonewolf committed Jun 1, 2024
1 parent 9715115 commit e9bbe83
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions shieldlib/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ You should create one definition entry for each network. The entry key must matc
}
},
"banners": ["ALT"],
"bannerMap": {
"ThisNetwork:Truck": ["TRK"],
"ThisNetwork:Truck:Bypass": ["TRK", "BYP"]
},
"bannerTextColor": "#000",
"bannerTextHaloColor": "#FFF",
"textLayout": {
Expand Down Expand Up @@ -176,6 +180,7 @@ You should create one definition entry for each network. The entry key must matc

![Bannered routes near Downington, PA](https://wiki.openstreetmap.org/w/images/f/f8/Downington_bannered_routes_Americana.png)

- **`bannerMap`**: a map of network-to-banner arrays listing networks that should have the same style but with specified banners.
- **`bannerTextColor`**: specify the color of the banner text.
- **`bannerTextHaloColor`**: specify the color of the banner knockout halo.
- **`textLayout`**: specify how text should be inscribed within the padded bounds of the shield. The text will be drawn at the maximum size allowed by this constraint. See the [text layout functions](#text-layout-functions) section for text layout options.
Expand Down

0 comments on commit e9bbe83

Please sign in to comment.