@chrtco/sdk 0.10.31 → 0.10.32
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 +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -29282,7 +29282,7 @@ function baseInlandWaterLayers(opts = {}) {
|
|
|
29282
29282
|
// src/atlas/land-layers.ts
|
|
29283
29283
|
var LAND_SURFACE_MINZOOM = BAND_PRIORITY_RANGES["5"].minzoom;
|
|
29284
29284
|
var LAND_SURFACE_LAYERS = (id) => id === "chrtland-base" || id === "chrtland-cover" || id === "chrtland-contour" || id === "chrtland-hillshade" || id === "chrtland-water" || id.startsWith("chrtland-fade-");
|
|
29285
|
-
var
|
|
29285
|
+
var isLandOverlay = (id) => id.startsWith("chrtland-") && id !== "chrtland-base";
|
|
29286
29286
|
var FADE_PX = 80;
|
|
29287
29287
|
var FADE_BANDS = 16;
|
|
29288
29288
|
function fadeAlpha(r) {
|
|
@@ -30324,7 +30324,7 @@ function generateStyle(palette = "DAY", opts = {}) {
|
|
|
30324
30324
|
const surface = [];
|
|
30325
30325
|
const kept = [];
|
|
30326
30326
|
assembled.forEach((l, i) => {
|
|
30327
|
-
if (i < lastRepaint &&
|
|
30327
|
+
if (i < lastRepaint && isLandOverlay(idOf(l))) surface.push(l);
|
|
30328
30328
|
else kept.push(l);
|
|
30329
30329
|
});
|
|
30330
30330
|
if (surface.length === 0) return assembled;
|