@chrtco/sdk 0.7.0 → 0.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1120,10 +1120,10 @@ var S52_DAY = {
1120
1120
  // Depth
1121
1121
  NODTA: "#a4a4a4",
1122
1122
  DEPIT: "#009678",
1123
- DEPVS: "#99d6ea",
1124
- DEPMS: "#b8e2f1",
1125
- DEPMD: "#c4eaf8",
1126
- DEPDW: "#dbf3fc",
1123
+ DEPVS: "#7fbfdf",
1124
+ DEPMS: "#a7d4e8",
1125
+ DEPMD: "#cae7f3",
1126
+ DEPDW: "#ecf7fc",
1127
1127
  // Land / topography
1128
1128
  LANDA: "#e6d1a1",
1129
1129
  LANDF: "#c8b078",
@@ -1202,10 +1202,10 @@ var S52_DAY = {
1202
1202
  var S52_DUSK = {
1203
1203
  NODTA: "#6b6b6b",
1204
1204
  DEPIT: "#006650",
1205
- DEPVS: "#5a8fa0",
1206
- DEPMS: "#6a9aad",
1207
- DEPMD: "#7ab0c0",
1208
- DEPDW: "#7fb5cc",
1205
+ DEPVS: "#487085",
1206
+ DEPMS: "#608a9d",
1207
+ DEPMD: "#7ba6b8",
1208
+ DEPDW: "#95bfd0",
1209
1209
  LANDA: "#8a7d5e",
1210
1210
  LANDF: "#7a6a48",
1211
1211
  CHBRN: "#6e4e30",
@@ -1273,10 +1273,10 @@ var S52_DUSK = {
1273
1273
  var S52_NIGHT = {
1274
1274
  NODTA: "#3a3a32",
1275
1275
  DEPIT: "#003828",
1276
- DEPVS: "#1a3a45",
1277
- DEPMS: "#1e4050",
1278
- DEPMD: "#1a3848",
1279
- DEPDW: "#1a3545",
1276
+ DEPVS: "#356577",
1277
+ DEPMS: "#265066",
1278
+ DEPMD: "#102e44",
1279
+ DEPDW: "#051a28",
1280
1280
  LANDA: "#3a3020",
1281
1281
  LANDF: "#302818",
1282
1282
  CHBRN: "#382410",
@@ -6165,8 +6165,8 @@ function getLabelConfig(layerName, opts = {}) {
6165
6165
  15,
6166
6166
  14
6167
6167
  ],
6168
- textColor: COLOR.LAND_REGION,
6169
- textHaloColor: DARK_BG,
6168
+ textColor: DARK_BG,
6169
+ textHaloColor: COLOR.LAND_REGION,
6170
6170
  textHaloWidth: 1.4,
6171
6171
  textOffset: [0, 0],
6172
6172
  textFont: ["Open Sans Regular"],
@@ -6184,8 +6184,8 @@ function getLabelConfig(layerName, opts = {}) {
6184
6184
  type: "symbol",
6185
6185
  textField: ["get", "OBJNAM"],
6186
6186
  textSize: 9,
6187
- textColor: "#d4c9b0",
6188
- textHaloColor: DARK_BG,
6187
+ textColor: DARK_BG,
6188
+ textHaloColor: "#d4c9b0",
6189
6189
  textHaloWidth: 1.5,
6190
6190
  textOffset: [0, 1.2],
6191
6191
  minzoom: 9
@@ -6324,8 +6324,8 @@ function getLabelConfig(layerName, opts = {}) {
6324
6324
  14,
6325
6325
  17
6326
6326
  ],
6327
- textColor: COLOR.WATER_DEEP,
6328
- textHaloColor: DARK_BG,
6327
+ textColor: DARK_BG,
6328
+ textHaloColor: COLOR.WATER_DEEP,
6329
6329
  textHaloWidth: 1.8,
6330
6330
  textOffset: [0, 0],
6331
6331
  textFont: ["Open Sans Italic"],
@@ -6355,8 +6355,8 @@ function getLabelConfig(layerName, opts = {}) {
6355
6355
  15,
6356
6356
  14
6357
6357
  ],
6358
- textColor: COLOR.WATER,
6359
- textHaloColor: DARK_BG,
6358
+ textColor: DARK_BG,
6359
+ textHaloColor: COLOR.WATER,
6360
6360
  textHaloWidth: 1.5,
6361
6361
  textOffset: [0, 0],
6362
6362
  textFont: ["Open Sans Italic"],
@@ -6384,8 +6384,8 @@ function getLabelConfig(layerName, opts = {}) {
6384
6384
  15,
6385
6385
  13
6386
6386
  ],
6387
- textColor: COLOR.WATER,
6388
- textHaloColor: DARK_BG,
6387
+ textColor: DARK_BG,
6388
+ textHaloColor: COLOR.WATER,
6389
6389
  textHaloWidth: 1.4,
6390
6390
  textOffset: [0, 0],
6391
6391
  textFont: ["Open Sans Italic"],
@@ -6411,8 +6411,8 @@ function getLabelConfig(layerName, opts = {}) {
6411
6411
  14,
6412
6412
  11
6413
6413
  ],
6414
- textColor: COLOR.WATER,
6415
- textHaloColor: DARK_BG,
6414
+ textColor: DARK_BG,
6415
+ textHaloColor: COLOR.WATER,
6416
6416
  textHaloWidth: 1.3,
6417
6417
  textOffset: [0, 0],
6418
6418
  textFont: ["Open Sans Italic"],
@@ -6440,8 +6440,8 @@ function getLabelConfig(layerName, opts = {}) {
6440
6440
  15,
6441
6441
  13
6442
6442
  ],
6443
- textColor: COLOR.LAND_NATURAL,
6444
- textHaloColor: DARK_BG,
6443
+ textColor: DARK_BG,
6444
+ textHaloColor: COLOR.LAND_NATURAL,
6445
6445
  textHaloWidth: 1.4,
6446
6446
  textOffset: [0, 0],
6447
6447
  textFont: ["Open Sans Regular"],
@@ -6469,8 +6469,8 @@ function getLabelConfig(layerName, opts = {}) {
6469
6469
  13,
6470
6470
  15
6471
6471
  ],
6472
- textColor: COLOR.CITY,
6473
- textHaloColor: DARK_BG,
6472
+ textColor: DARK_BG,
6473
+ textHaloColor: COLOR.CITY,
6474
6474
  textHaloWidth: 1.6,
6475
6475
  textOffset: [0, 0],
6476
6476
  textFont: ["Open Sans Regular"],
@@ -6541,8 +6541,8 @@ function getLabelConfig(layerName, opts = {}) {
6541
6541
  type: "symbol",
6542
6542
  textField: ["get", "OBJNAM"],
6543
6543
  textSize: 8,
6544
- textColor: "#c8c0b0",
6545
- textHaloColor: DARK_BG,
6544
+ textColor: DARK_BG,
6545
+ textHaloColor: "#c8c0b0",
6546
6546
  textHaloWidth: 1.2,
6547
6547
  textOffset: [0, 1.2],
6548
6548
  minzoom: 14,
@@ -6564,8 +6564,8 @@ function getLabelConfig(layerName, opts = {}) {
6564
6564
  13,
6565
6565
  11
6566
6566
  ],
6567
- textColor: COLOR.AIRPORT,
6568
- textHaloColor: DARK_BG,
6567
+ textColor: DARK_BG,
6568
+ textHaloColor: COLOR.AIRPORT,
6569
6569
  textHaloWidth: 1.4,
6570
6570
  textOffset: [0, 0],
6571
6571
  textFont: ["Open Sans Regular"],
@@ -6591,8 +6591,8 @@ function getLabelConfig(layerName, opts = {}) {
6591
6591
  16,
6592
6592
  11
6593
6593
  ],
6594
- textColor: COLOR.SOUNDING,
6595
- textHaloColor: DARK_BG,
6594
+ textColor: DARK_BG,
6595
+ textHaloColor: COLOR.SOUNDING,
6596
6596
  textHaloWidth: 1,
6597
6597
  textOffset: [0, 0],
6598
6598
  textFont: ["Open Sans Italic"],
@@ -6684,8 +6684,8 @@ function getLabelConfig(layerName, opts = {}) {
6684
6684
  16,
6685
6685
  11
6686
6686
  ],
6687
- textColor: "#3f8a34",
6688
- textHaloColor: DARK_BG,
6687
+ textColor: DARK_BG,
6688
+ textHaloColor: "#3f8a34",
6689
6689
  textHaloWidth: 1,
6690
6690
  textOffset: [0, 0],
6691
6691
  textFont: ["Open Sans Italic"],
@@ -8948,13 +8948,13 @@ function buildLayersForClass(objectClass, ct, sourceId = DEFAULT_REGION) {
8948
8948
  ["linear"],
8949
8949
  ["zoom"],
8950
8950
  6,
8951
- 0.4,
8951
+ 0.56,
8952
8952
  12,
8953
- 0.45,
8953
+ 0.63,
8954
8954
  14,
8955
- 0.6,
8955
+ 0.85,
8956
8956
  18,
8957
- 1.1
8957
+ 1.4
8958
8958
  ];
8959
8959
  const defaultIconSize = [
8960
8960
  "interpolate",
@@ -9173,7 +9173,7 @@ function buildLayersForClass(objectClass, ct, sourceId = DEFAULT_REGION) {
9173
9173
  filter: GEOM_FILTERS.fill,
9174
9174
  layout: {
9175
9175
  "icon-image": "ACHARE02",
9176
- "icon-size": ["interpolate", ["linear"], ["zoom"], 10, 0.5, 14, 0.8, 17, 1.1],
9176
+ "icon-size": ["interpolate", ["linear"], ["zoom"], 10, 0.7, 14, 1.15, 17, 1.5],
9177
9177
  "icon-allow-overlap": true,
9178
9178
  "icon-ignore-placement": false,
9179
9179
  "symbol-placement": "point",