Skip to content

Commit

Permalink
Merge pull request osm-americana#323 from ZeLonewolf/shield-conflate-…
Browse files Browse the repository at this point in the history
…circles

Add Zia sun symbol for New Mexico shield
  • Loading branch information
claysmalley authored Apr 30, 2024
2 parents 16352eb + dfc0977 commit 5e76ca1
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 12 deletions.
5 changes: 5 additions & 0 deletions icons/shield40_us_nm_2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions icons/shield40_us_nm_3.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 7 additions & 1 deletion scripts/stats_compare.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,13 @@ const ss2xRow = mdCompareRow(
difference.spriteSheet2xSize
);

printTable("Style size statistics", [layersRow, sizeRow, ss1xRow, ss2xRow, shieldRow]);
printTable("Style size statistics", [
layersRow,
sizeRow,
ss1xRow,
ss2xRow,
shieldRow,
]);

/**
* Show comparison of the number of layers in each group before and after
Expand Down
16 changes: 11 additions & 5 deletions src/js/shield_defs.js
Original file line number Diff line number Diff line change
Expand Up @@ -1673,11 +1673,17 @@ export function loadShields() {
);

// New Mexico
shields["US:NM"] = pillShield(
Color.shields.white,
Color.shields.pink,
Color.shields.black
);
shields["US:NM"] = {
spriteBlank: ["shield40_us_nm_2", "shield40_us_nm_3"],
textColor: Color.shields.black,
textLayout: textConstraint("ellipse"),
padding: {
left: 5,
right: 5,
top: 5,
bottom: 5,
},
};
shields["US:NM:Frontage"] = {
spriteBlank: "shield_us_nm_frontage",
textColor: Color.shields.black,
Expand Down
8 changes: 2 additions & 6 deletions src/layer/poi.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,13 +368,9 @@ export const poi = {
[
"match",
["get", "subclass"],
[
...getSubclasses(iconDefs.college),
],
[...getSubclasses(iconDefs.college)],
10,
[
"station",
"halt"],
["station", "halt"],
12,
["bus_station", "subway"],
14,
Expand Down

0 comments on commit 5e76ca1

Please sign in to comment.