@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.js
CHANGED
|
@@ -29058,7 +29058,7 @@ function baseInlandWaterLayers(opts = {}) {
|
|
|
29058
29058
|
// src/atlas/land-layers.ts
|
|
29059
29059
|
var LAND_SURFACE_MINZOOM = BAND_PRIORITY_RANGES["5"].minzoom;
|
|
29060
29060
|
var LAND_SURFACE_LAYERS = (id) => id === "chrtland-base" || id === "chrtland-cover" || id === "chrtland-contour" || id === "chrtland-hillshade" || id === "chrtland-water" || id.startsWith("chrtland-fade-");
|
|
29061
|
-
var
|
|
29061
|
+
var isLandOverlay = (id) => id.startsWith("chrtland-") && id !== "chrtland-base";
|
|
29062
29062
|
var FADE_PX = 80;
|
|
29063
29063
|
var FADE_BANDS = 16;
|
|
29064
29064
|
function fadeAlpha(r) {
|
|
@@ -30100,7 +30100,7 @@ function generateStyle(palette = "DAY", opts = {}) {
|
|
|
30100
30100
|
const surface = [];
|
|
30101
30101
|
const kept = [];
|
|
30102
30102
|
assembled.forEach((l, i) => {
|
|
30103
|
-
if (i < lastRepaint &&
|
|
30103
|
+
if (i < lastRepaint && isLandOverlay(idOf(l))) surface.push(l);
|
|
30104
30104
|
else kept.push(l);
|
|
30105
30105
|
});
|
|
30106
30106
|
if (surface.length === 0) return assembled;
|