@chrtco/sdk 0.10.34 → 0.10.36

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
@@ -66,6 +66,7 @@ __export(index_exports, {
66
66
  LABEL_BEHAVIOR: () => LABEL_BEHAVIOR,
67
67
  LABEL_LAYER_GROUPS: () => LABEL_LAYER_GROUPS,
68
68
  LABEL_PRIORITY: () => LABEL_PRIORITY,
69
+ LAND_BUILD_MAXZOOM: () => LAND_BUILD_MAXZOOM,
69
70
  LAND_REGION: () => LAND_REGION,
70
71
  NAUTICAL_SYMBOLS: () => NAUTICAL_SYMBOLS,
71
72
  NAV_AID_LAYER_GROUPS: () => NAV_AID_LAYER_GROUPS,
@@ -583,6 +584,7 @@ var TileAuth = class {
583
584
  // src/atlas/tile-zoom.ts
584
585
  var BUILD_MINZOOM = 0;
585
586
  var BUILD_MAXZOOM = 14;
587
+ var LAND_BUILD_MAXZOOM = 14;
586
588
 
587
589
  // src/atlas/source-registry.ts
588
590
  var LAND_REGION = "CHRT_LAND";
@@ -628,7 +630,7 @@ function buildSources(opts = {}) {
628
630
  type: "vector",
629
631
  tiles: [tileTemplate(base, LAND_REGION, "mvt", buildFor(LAND_REGION))],
630
632
  minzoom: BUILD_MINZOOM,
631
- maxzoom: BUILD_MAXZOOM
633
+ maxzoom: LAND_BUILD_MAXZOOM
632
634
  };
633
635
  }
634
636
  if (opts.base) {
@@ -29488,7 +29490,7 @@ function baseInlandWaterLayers(opts = {}) {
29488
29490
 
29489
29491
  // src/atlas/land-layers.ts
29490
29492
  var LAND_SURFACE_MINZOOM = BAND_PRIORITY_RANGES["5"].minzoom;
29491
- var LAND_SURFACE_LAYERS = (id) => id === "chrtland-base" || id === "chrtland-cover" || id === "chrtland-contour" || id === "chrtland-hillshade" || id === "chrtland-water" || id.startsWith("chrtland-fade-");
29493
+ var LAND_SURFACE_LAYERS = (id) => id === "chrtland-base" || id === "chrtland-cover" || id.startsWith("chrtland-contour") || id === "chrtland-hillshade" || id === "chrtland-water" || id.startsWith("chrtland-fade-");
29492
29494
  var isLandOverlay = (id) => id.startsWith("chrtland-") && id !== "chrtland-base";
29493
29495
  var FADE_PX = 80;
29494
29496
  var FADE_BANDS = 16;
@@ -29626,15 +29628,28 @@ function landLayers(opts = {}) {
29626
29628
  ["<=", ["coalesce", ["get", "index_z"], 99], ["zoom"]],
29627
29629
  ["==", ["get", "is_index"], 1]
29628
29630
  ];
29631
+ const contourVisible = ["<=", ["coalesce", ["get", "min_z"], 0], ["zoom"]];
29632
+ layers.push(L({
29633
+ id: "chrtland-contour-index",
29634
+ type: "line",
29635
+ source: src,
29636
+ "source-layer": "land_contour",
29637
+ filter: ["all", contourVisible, isIndexContour],
29638
+ paint: {
29639
+ "line-color": T.contourIndex,
29640
+ "line-width": 0.8,
29641
+ "line-opacity": 0.7
29642
+ }
29643
+ }));
29629
29644
  layers.push(L({
29630
29645
  id: "chrtland-contour",
29631
29646
  type: "line",
29632
29647
  source: src,
29633
29648
  "source-layer": "land_contour",
29634
- filter: ["<=", ["coalesce", ["get", "min_z"], 0], ["zoom"]],
29649
+ filter: ["all", contourVisible, ["!", isIndexContour]],
29635
29650
  paint: {
29636
- "line-color": ["case", isIndexContour, T.contourIndex, T.contour],
29637
- "line-width": ["case", isIndexContour, 0.8, 0.4],
29651
+ "line-color": T.contour,
29652
+ "line-width": 0.4,
29638
29653
  "line-opacity": 0.7
29639
29654
  }
29640
29655
  }));
@@ -31507,6 +31522,7 @@ var Chrt = class {
31507
31522
  LABEL_BEHAVIOR,
31508
31523
  LABEL_LAYER_GROUPS,
31509
31524
  LABEL_PRIORITY,
31525
+ LAND_BUILD_MAXZOOM,
31510
31526
  LAND_REGION,
31511
31527
  NAUTICAL_SYMBOLS,
31512
31528
  NAV_AID_LAYER_GROUPS,