@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/atlas/browser.cjs +208 -14
- package/dist/atlas/browser.cjs.map +1 -1
- package/dist/atlas/browser.d.cts +63 -1
- package/dist/atlas/browser.d.ts +63 -1
- package/dist/atlas/browser.js +203 -13
- package/dist/atlas/browser.js.map +1 -1
- package/dist/index.cjs +41 -41
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +41 -41
- package/dist/index.js.map +1 -1
- package/package.json +20 -3
package/dist/index.js
CHANGED
|
@@ -1015,10 +1015,10 @@ var S52_DAY = {
|
|
|
1015
1015
|
// Depth
|
|
1016
1016
|
NODTA: "#a4a4a4",
|
|
1017
1017
|
DEPIT: "#009678",
|
|
1018
|
-
DEPVS: "#
|
|
1019
|
-
DEPMS: "#
|
|
1020
|
-
DEPMD: "#
|
|
1021
|
-
DEPDW: "#
|
|
1018
|
+
DEPVS: "#7fbfdf",
|
|
1019
|
+
DEPMS: "#a7d4e8",
|
|
1020
|
+
DEPMD: "#cae7f3",
|
|
1021
|
+
DEPDW: "#ecf7fc",
|
|
1022
1022
|
// Land / topography
|
|
1023
1023
|
LANDA: "#e6d1a1",
|
|
1024
1024
|
LANDF: "#c8b078",
|
|
@@ -1097,10 +1097,10 @@ var S52_DAY = {
|
|
|
1097
1097
|
var S52_DUSK = {
|
|
1098
1098
|
NODTA: "#6b6b6b",
|
|
1099
1099
|
DEPIT: "#006650",
|
|
1100
|
-
DEPVS: "#
|
|
1101
|
-
DEPMS: "#
|
|
1102
|
-
DEPMD: "#
|
|
1103
|
-
DEPDW: "#
|
|
1100
|
+
DEPVS: "#487085",
|
|
1101
|
+
DEPMS: "#608a9d",
|
|
1102
|
+
DEPMD: "#7ba6b8",
|
|
1103
|
+
DEPDW: "#95bfd0",
|
|
1104
1104
|
LANDA: "#8a7d5e",
|
|
1105
1105
|
LANDF: "#7a6a48",
|
|
1106
1106
|
CHBRN: "#6e4e30",
|
|
@@ -1168,10 +1168,10 @@ var S52_DUSK = {
|
|
|
1168
1168
|
var S52_NIGHT = {
|
|
1169
1169
|
NODTA: "#3a3a32",
|
|
1170
1170
|
DEPIT: "#003828",
|
|
1171
|
-
DEPVS: "#
|
|
1172
|
-
DEPMS: "#
|
|
1173
|
-
DEPMD: "#
|
|
1174
|
-
DEPDW: "#
|
|
1171
|
+
DEPVS: "#356577",
|
|
1172
|
+
DEPMS: "#265066",
|
|
1173
|
+
DEPMD: "#102e44",
|
|
1174
|
+
DEPDW: "#051a28",
|
|
1175
1175
|
LANDA: "#3a3020",
|
|
1176
1176
|
LANDF: "#302818",
|
|
1177
1177
|
CHBRN: "#382410",
|
|
@@ -6060,8 +6060,8 @@ function getLabelConfig(layerName, opts = {}) {
|
|
|
6060
6060
|
15,
|
|
6061
6061
|
14
|
|
6062
6062
|
],
|
|
6063
|
-
textColor:
|
|
6064
|
-
textHaloColor:
|
|
6063
|
+
textColor: DARK_BG,
|
|
6064
|
+
textHaloColor: COLOR.LAND_REGION,
|
|
6065
6065
|
textHaloWidth: 1.4,
|
|
6066
6066
|
textOffset: [0, 0],
|
|
6067
6067
|
textFont: ["Open Sans Regular"],
|
|
@@ -6079,8 +6079,8 @@ function getLabelConfig(layerName, opts = {}) {
|
|
|
6079
6079
|
type: "symbol",
|
|
6080
6080
|
textField: ["get", "OBJNAM"],
|
|
6081
6081
|
textSize: 9,
|
|
6082
|
-
textColor:
|
|
6083
|
-
textHaloColor:
|
|
6082
|
+
textColor: DARK_BG,
|
|
6083
|
+
textHaloColor: "#d4c9b0",
|
|
6084
6084
|
textHaloWidth: 1.5,
|
|
6085
6085
|
textOffset: [0, 1.2],
|
|
6086
6086
|
minzoom: 9
|
|
@@ -6219,8 +6219,8 @@ function getLabelConfig(layerName, opts = {}) {
|
|
|
6219
6219
|
14,
|
|
6220
6220
|
17
|
|
6221
6221
|
],
|
|
6222
|
-
textColor:
|
|
6223
|
-
textHaloColor:
|
|
6222
|
+
textColor: DARK_BG,
|
|
6223
|
+
textHaloColor: COLOR.WATER_DEEP,
|
|
6224
6224
|
textHaloWidth: 1.8,
|
|
6225
6225
|
textOffset: [0, 0],
|
|
6226
6226
|
textFont: ["Open Sans Italic"],
|
|
@@ -6250,8 +6250,8 @@ function getLabelConfig(layerName, opts = {}) {
|
|
|
6250
6250
|
15,
|
|
6251
6251
|
14
|
|
6252
6252
|
],
|
|
6253
|
-
textColor:
|
|
6254
|
-
textHaloColor:
|
|
6253
|
+
textColor: DARK_BG,
|
|
6254
|
+
textHaloColor: COLOR.WATER,
|
|
6255
6255
|
textHaloWidth: 1.5,
|
|
6256
6256
|
textOffset: [0, 0],
|
|
6257
6257
|
textFont: ["Open Sans Italic"],
|
|
@@ -6279,8 +6279,8 @@ function getLabelConfig(layerName, opts = {}) {
|
|
|
6279
6279
|
15,
|
|
6280
6280
|
13
|
|
6281
6281
|
],
|
|
6282
|
-
textColor:
|
|
6283
|
-
textHaloColor:
|
|
6282
|
+
textColor: DARK_BG,
|
|
6283
|
+
textHaloColor: COLOR.WATER,
|
|
6284
6284
|
textHaloWidth: 1.4,
|
|
6285
6285
|
textOffset: [0, 0],
|
|
6286
6286
|
textFont: ["Open Sans Italic"],
|
|
@@ -6306,8 +6306,8 @@ function getLabelConfig(layerName, opts = {}) {
|
|
|
6306
6306
|
14,
|
|
6307
6307
|
11
|
|
6308
6308
|
],
|
|
6309
|
-
textColor:
|
|
6310
|
-
textHaloColor:
|
|
6309
|
+
textColor: DARK_BG,
|
|
6310
|
+
textHaloColor: COLOR.WATER,
|
|
6311
6311
|
textHaloWidth: 1.3,
|
|
6312
6312
|
textOffset: [0, 0],
|
|
6313
6313
|
textFont: ["Open Sans Italic"],
|
|
@@ -6335,8 +6335,8 @@ function getLabelConfig(layerName, opts = {}) {
|
|
|
6335
6335
|
15,
|
|
6336
6336
|
13
|
|
6337
6337
|
],
|
|
6338
|
-
textColor:
|
|
6339
|
-
textHaloColor:
|
|
6338
|
+
textColor: DARK_BG,
|
|
6339
|
+
textHaloColor: COLOR.LAND_NATURAL,
|
|
6340
6340
|
textHaloWidth: 1.4,
|
|
6341
6341
|
textOffset: [0, 0],
|
|
6342
6342
|
textFont: ["Open Sans Regular"],
|
|
@@ -6364,8 +6364,8 @@ function getLabelConfig(layerName, opts = {}) {
|
|
|
6364
6364
|
13,
|
|
6365
6365
|
15
|
|
6366
6366
|
],
|
|
6367
|
-
textColor:
|
|
6368
|
-
textHaloColor:
|
|
6367
|
+
textColor: DARK_BG,
|
|
6368
|
+
textHaloColor: COLOR.CITY,
|
|
6369
6369
|
textHaloWidth: 1.6,
|
|
6370
6370
|
textOffset: [0, 0],
|
|
6371
6371
|
textFont: ["Open Sans Regular"],
|
|
@@ -6436,8 +6436,8 @@ function getLabelConfig(layerName, opts = {}) {
|
|
|
6436
6436
|
type: "symbol",
|
|
6437
6437
|
textField: ["get", "OBJNAM"],
|
|
6438
6438
|
textSize: 8,
|
|
6439
|
-
textColor:
|
|
6440
|
-
textHaloColor:
|
|
6439
|
+
textColor: DARK_BG,
|
|
6440
|
+
textHaloColor: "#c8c0b0",
|
|
6441
6441
|
textHaloWidth: 1.2,
|
|
6442
6442
|
textOffset: [0, 1.2],
|
|
6443
6443
|
minzoom: 14,
|
|
@@ -6459,8 +6459,8 @@ function getLabelConfig(layerName, opts = {}) {
|
|
|
6459
6459
|
13,
|
|
6460
6460
|
11
|
|
6461
6461
|
],
|
|
6462
|
-
textColor:
|
|
6463
|
-
textHaloColor:
|
|
6462
|
+
textColor: DARK_BG,
|
|
6463
|
+
textHaloColor: COLOR.AIRPORT,
|
|
6464
6464
|
textHaloWidth: 1.4,
|
|
6465
6465
|
textOffset: [0, 0],
|
|
6466
6466
|
textFont: ["Open Sans Regular"],
|
|
@@ -6486,8 +6486,8 @@ function getLabelConfig(layerName, opts = {}) {
|
|
|
6486
6486
|
16,
|
|
6487
6487
|
11
|
|
6488
6488
|
],
|
|
6489
|
-
textColor:
|
|
6490
|
-
textHaloColor:
|
|
6489
|
+
textColor: DARK_BG,
|
|
6490
|
+
textHaloColor: COLOR.SOUNDING,
|
|
6491
6491
|
textHaloWidth: 1,
|
|
6492
6492
|
textOffset: [0, 0],
|
|
6493
6493
|
textFont: ["Open Sans Italic"],
|
|
@@ -6579,8 +6579,8 @@ function getLabelConfig(layerName, opts = {}) {
|
|
|
6579
6579
|
16,
|
|
6580
6580
|
11
|
|
6581
6581
|
],
|
|
6582
|
-
textColor:
|
|
6583
|
-
textHaloColor:
|
|
6582
|
+
textColor: DARK_BG,
|
|
6583
|
+
textHaloColor: "#3f8a34",
|
|
6584
6584
|
textHaloWidth: 1,
|
|
6585
6585
|
textOffset: [0, 0],
|
|
6586
6586
|
textFont: ["Open Sans Italic"],
|
|
@@ -8843,13 +8843,13 @@ function buildLayersForClass(objectClass, ct, sourceId = DEFAULT_REGION) {
|
|
|
8843
8843
|
["linear"],
|
|
8844
8844
|
["zoom"],
|
|
8845
8845
|
6,
|
|
8846
|
-
0.
|
|
8846
|
+
0.56,
|
|
8847
8847
|
12,
|
|
8848
|
-
0.
|
|
8848
|
+
0.63,
|
|
8849
8849
|
14,
|
|
8850
|
-
0.
|
|
8850
|
+
0.85,
|
|
8851
8851
|
18,
|
|
8852
|
-
1.
|
|
8852
|
+
1.4
|
|
8853
8853
|
];
|
|
8854
8854
|
const defaultIconSize = [
|
|
8855
8855
|
"interpolate",
|
|
@@ -9068,7 +9068,7 @@ function buildLayersForClass(objectClass, ct, sourceId = DEFAULT_REGION) {
|
|
|
9068
9068
|
filter: GEOM_FILTERS.fill,
|
|
9069
9069
|
layout: {
|
|
9070
9070
|
"icon-image": "ACHARE02",
|
|
9071
|
-
"icon-size": ["interpolate", ["linear"], ["zoom"], 10, 0.
|
|
9071
|
+
"icon-size": ["interpolate", ["linear"], ["zoom"], 10, 0.7, 14, 1.15, 17, 1.5],
|
|
9072
9072
|
"icon-allow-overlap": true,
|
|
9073
9073
|
"icon-ignore-placement": false,
|
|
9074
9074
|
"symbol-placement": "point",
|