Skip to content

Commit

Permalink
Merge pull request #1134 from ZeLonewolf/1ec5-domain-font
Browse files Browse the repository at this point in the history
Update GitHub Pages URLs for glyphs
  • Loading branch information
ZeLonewolf authored Jul 19, 2024
2 parents 66ac4b2 + 560373a commit 0d51830
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion scripts/extract_layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const locales = opts.locales[0].split(",");
const style = Style.build(
config.OPENMAPTILES_URL,
"https://americanamap.org/sprites/sprite",
"https://osm-americana.github.io/fontstack66/{fontstack}/{range}.pbf",
"https://font.americanamap.org/{fontstack}/{range}.pbf",
locales
);

Expand Down
2 changes: 1 addition & 1 deletion scripts/generate_style.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ let opts = program.opts();
let style = Style.build(
config.OPENMAPTILES_URL,
"https://americanamap.org/sprites/sprite",
"https://osm-americana.github.io/fontstack66/{fontstack}/{range}.pbf",
"https://font.americanamap.org/{fontstack}/{range}.pbf",
opts.locales
);

Expand Down
2 changes: 1 addition & 1 deletion scripts/stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const distDir = opts.directory;
const style = Style.build(
config.OPENMAPTILES_URL,
"https://americanamap.org/sprites/sprite",
"https://osm-americana.github.io/fontstack66/{fontstack}/{range}.pbf",
"https://font.americanamap.org/{fontstack}/{range}.pbf",
locales
);

Expand Down
3 changes: 1 addition & 2 deletions src/js/map_builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ export function buildStyle(): StyleSpecification {
return Style.build(
config.OPENMAPTILES_URL,
`${baseUrl}/sprites/sprite`,
config.FONT_URL ??
"https://osm-americana.github.io/fontstack66/{fontstack}/{range}.pbf",
config.FONT_URL ?? "https://font.americanamap.org/{fontstack}/{range}.pbf",
Label.getLocales()
);
}
Expand Down

0 comments on commit 0d51830

Please sign in to comment.