maplibre-gl-raster 0.2.2 → 0.2.4

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.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as colormaps_default, a as debounce, c as throttle, d as percentileFromHistogram, f as readBandNames, g as COLORMAP_ROW_COUNT, h as COLORMAP_OPTIONS, i as classNames, l as MAX_SAMPLE_TILES, m as COLORMAP_NAMES, n as PALETTE_COLORMAP, o as formatNumericValue, p as loadGeoTIFF, r as clamp, s as generateId, t as RasterControl, u as computeAutoStats, v as createResilientEpsgResolver } from "./RasterControl-BxGg08KC.js";
1
+ import { _ as colormaps_default, a as debounce, c as throttle, d as percentileFromHistogram, f as readBandNames, g as COLORMAP_ROW_COUNT, h as COLORMAP_OPTIONS, i as classNames, l as MAX_SAMPLE_TILES, m as COLORMAP_NAMES, n as PALETTE_COLORMAP, o as formatNumericValue, p as loadGeoTIFF, r as clamp, s as generateId, t as RasterControl, u as computeAutoStats, v as createResilientEpsgResolver } from "./RasterControl-BAv4x6Eg.js";
2
2
  import { a as Photometric, d as TiffTag, i as Compression, l as SampleFormat, o as PlanarConfiguration, s as Predictor } from "./decode-BL-qbDOV.js";
3
3
  //#region src/lib/raster/metadata.ts
4
4
  var SAMPLE_FORMAT_LABELS = {
package/dist/react.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as RasterControl } from "./RasterControl-BxGg08KC.js";
1
+ import { t as RasterControl } from "./RasterControl-BAv4x6Eg.js";
2
2
  import { useCallback, useEffect, useRef, useState } from "react";
3
3
  //#region src/lib/core/RasterControlReact.tsx
4
4
  /**
@@ -444,6 +444,15 @@ export declare class RasterControl implements IControl {
444
444
  * @param toIndex - Target index (0 = bottom)
445
445
  */
446
446
  reorderRaster(id: string, toIndex: number): void;
447
+ /**
448
+ * Sets the MapLibre layer a raster draws beneath (interleaved mode), so a host
449
+ * can interleave rasters with its own vector layers. Pass null to draw the
450
+ * raster on top. See {@link import('../state/LayerManager').LayerManager.setBeforeId}.
451
+ *
452
+ * @param id - The layer id
453
+ * @param beforeId - The MapLibre style layer id to draw beneath, or null
454
+ */
455
+ setRasterBeforeId(id: string, beforeId: string | null): void;
447
456
  /** Re-emits LayerManager events through the control's event system. */
448
457
  private _forwardLayerManagerEvents;
449
458
  /**
@@ -195,6 +195,15 @@ export declare class RasterControl implements IControl {
195
195
  * @param toIndex - Target index (0 = bottom)
196
196
  */
197
197
  reorderRaster(id: string, toIndex: number): void;
198
+ /**
199
+ * Sets the MapLibre layer a raster draws beneath (interleaved mode), so a host
200
+ * can interleave rasters with its own vector layers. Pass null to draw the
201
+ * raster on top. See {@link import('../state/LayerManager').LayerManager.setBeforeId}.
202
+ *
203
+ * @param id - The layer id
204
+ * @param beforeId - The MapLibre style layer id to draw beneath, or null
205
+ */
206
+ setRasterBeforeId(id: string, beforeId: string | null): void;
198
207
  /** Re-emits LayerManager events through the control's event system. */
199
208
  private _forwardLayerManagerEvents;
200
209
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "maplibre-gl-raster",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "description": "A MapLibre GL JS plugin for visualizing local and remote raster datasets (GeoTIFF/COG)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.mjs",