Skip to content

Commit

Permalink
Merge branch 'main' into clay-shields-us-mn-countyfix-2
Browse files Browse the repository at this point in the history
  • Loading branch information
claysmalley authored May 4, 2024
2 parents bece42f + 8b83f35 commit 363d98d
Show file tree
Hide file tree
Showing 9 changed files with 82 additions and 13 deletions.
1 change: 1 addition & 0 deletions doc-img/shield_map_world.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_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.
22 changes: 22 additions & 0 deletions icons/shield_ca_ns_s_mdb.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions icons/shield_ca_ns_s_mkb.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
2 changes: 1 addition & 1 deletion src/configs/config.aws.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
Planetiler tile server, hosted at AWS
*/
const OPENMAPTILES_URL = "https://tile.ourmap.us/data/omt_3_15.json";
const OPENMAPTILES_URL = "https://tile.ourmap.us/data/v3.json";

/*
The following two variables override the color of the bounding box and halo of
Expand Down
22 changes: 17 additions & 5 deletions src/js/shield_defs.js
Original file line number Diff line number Diff line change
Expand Up @@ -1681,11 +1681,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 Expand Up @@ -3673,6 +3679,12 @@ export function loadShields() {
// Ref-specific cases. Each entry should be documented in CONTRIBUTE.md

shields["CA:NS:S"].overrideByName = {
"A. Murray MacKay Bridge": {
spriteBlank: "shield_ca_ns_s_mkb",
},
"Angus L. MacDonald Bridge": {
spriteBlank: "shield_ca_ns_s_mdb",
},
"Bras d'Or Lakes Scenic Drive": {
spriteBlank: "shield_ca_ns_s_bdolsd",
},
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 363d98d

Please sign in to comment.