Skip to content

Commit

Permalink
Merge branch 'main' into wmisener/neighborhoods
Browse files Browse the repository at this point in the history
  • Loading branch information
zekefarwell authored Jul 20, 2024
2 parents 67140b5 + 0d51830 commit f6ceeaa
Show file tree
Hide file tree
Showing 11 changed files with 27 additions and 159 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ This style strives to draw representative highway shields wherever they are tagg
For testing out changes across a variety of different shield designs and ref lengths there is a shield test gallery available:

- In local development: http://localhost:1776/shieldtest.html
- On the public demo site: https://zelonewolf.github.io/openstreetmap-americana/shieldtest.html
- On the public demo site: https://americanamap.org/shieldtest.html

This aims to display a table of all the unique shield designs in the style with some example refs from 1 to 6 characters. The `networks` and `refs` arrays can be modified for testing with a different set of either:

Expand Down
52 changes: 5 additions & 47 deletions icons/shield_us_nht_oreg.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
52 changes: 5 additions & 47 deletions icons/shield_us_nht_ovvi.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
57 changes: 5 additions & 52 deletions icons/shield_us_nht_semo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions scripts/extract_layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ const locales = opts.locales[0].split(",");

const style = Style.build(
config.OPENMAPTILES_URL,
"https://zelonewolf.github.io/openstreetmap-americana/sprites/sprite",
"https://osm-americana.github.io/fontstack66/{fontstack}/{range}.pbf",
"https://americanamap.org/sprites/sprite",
"https://font.americanamap.org/{fontstack}/{range}.pbf",
locales
);

Expand Down
2 changes: 1 addition & 1 deletion scripts/folder_diff.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ fs.readdirSync(outputFolder)
// Add an entry to the markdown table
const loc = getLocationByName(basefile);
mdContent +=
`| ${basefile}<br>${loc}<br>[Current Render](https://zelonewolf.github.io/openstreetmap-americana/#map=${loc})` +
`| ${basefile}<br>${loc}<br>[Current Render](https://americanamap.org/#map=${loc})` +
`<br>[This PR](${urlBase}#map=${loc}) ` +
`| ![Current Render](${urlBase}${outputFolder}/${basefile}_${sha}_before.png) |` +
` ![This PR](${urlBase}${outputFolder}/${basefile}_${sha}_after.png) |\n`;
Expand Down
4 changes: 2 additions & 2 deletions scripts/generate_style.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ let opts = program.opts();

let style = Style.build(
config.OPENMAPTILES_URL,
"https://zelonewolf.github.io/openstreetmap-americana/sprites/sprite",
"https://osm-americana.github.io/fontstack66/{fontstack}/{range}.pbf",
"https://americanamap.org/sprites/sprite",
"https://font.americanamap.org/{fontstack}/{range}.pbf",
opts.locales
);

Expand Down
4 changes: 2 additions & 2 deletions scripts/stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ const distDir = opts.directory;

const style = Style.build(
config.OPENMAPTILES_URL,
"https://zelonewolf.github.io/openstreetmap-americana/sprites/sprite",
"https://osm-americana.github.io/fontstack66/{fontstack}/{range}.pbf",
"https://americanamap.org/sprites/sprite",
"https://font.americanamap.org/{fontstack}/{range}.pbf",
locales
);

Expand Down
4 changes: 2 additions & 2 deletions scripts/taginfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function addNetworkTags(project) {
if (!fs.existsSync(save_filename)) {
fs.writeFileSync(save_filename, shieldGfx.canvas.toBuffer());
}
icon_url = `https://zelonewolf.github.io/openstreetmap-americana/shield-sample/shield_${network_filename_id}.svg`;
icon_url = `https://americanamap.org/shield-sample/shield_${network_filename_id}.svg`;
} else if (
icon !== undefined &&
(shieldDef.colorLighten !== undefined ||
Expand Down Expand Up @@ -122,7 +122,7 @@ function addNetworkTags(project) {
if (!fs.existsSync(save_filename)) {
fs.writeFileSync(`${process.cwd()}/${save_filename}`, svgText);
}
icon_url = `https://zelonewolf.github.io/openstreetmap-americana/shield-sample/shield_${network_filename_id}.svg`;
icon_url = `https://americanamap.org/shield-sample/shield_${network_filename_id}.svg`;
} else {
icon_url = `https://raw.githubusercontent.com/ZeLonewolf/openstreetmap-americana/main/icons/${icon}.svg`;
}
Expand Down
2 changes: 1 addition & 1 deletion shieldlib/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -323,4 +323,4 @@ In addition to the stock drawing functions, a custom draw function can be specif

## Documentation

See [TypeDoc generated documentation](https://zelonewolf.github.io/openstreetmap-americana/shield-docs/index.html) for detailed API information.
See [TypeDoc generated documentation](https://americanamap.org/shield-docs/index.html) for detailed API information.
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 f6ceeaa

Please sign in to comment.