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/{RasterControl-BxGg08KC.js → RasterControl-BAv4x6Eg.js} +87 -37
- package/dist/RasterControl-BAv4x6Eg.js.map +1 -0
- package/dist/index.mjs +1 -1
- package/dist/react.mjs +1 -1
- package/dist/types/index.d.ts +9 -0
- package/dist/types/react.d.ts +9 -0
- package/package.json +1 -1
- package/dist/RasterControl-BxGg08KC.js.map +0 -1
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-
|
|
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
package/dist/types/index.d.ts
CHANGED
|
@@ -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
|
/**
|
package/dist/types/react.d.ts
CHANGED
|
@@ -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
|
/**
|