maplibre-gl-raster 0.1.0 → 0.1.1
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-B7XdXYSu.js → RasterControl-5SqPCn7_.js} +9 -1
- package/dist/{RasterControl-B7XdXYSu.js.map → RasterControl-5SqPCn7_.js.map} +1 -1
- package/dist/index.mjs +1 -1
- package/dist/react.mjs +1 -1
- package/dist/types/index.d.ts +15 -0
- package/dist/types/react.d.ts +15 -0
- package/package.json +1 -1
|
@@ -16777,6 +16777,9 @@ function toLayerInfo(layer) {
|
|
|
16777
16777
|
bandCount: layer.bandCount,
|
|
16778
16778
|
bandNames: layer.bandNames ? new Map(layer.bandNames) : null,
|
|
16779
16779
|
beforeId: layer.beforeId,
|
|
16780
|
+
bounds: layer.bounds ? { ...layer.bounds } : null,
|
|
16781
|
+
loading: layer.loading,
|
|
16782
|
+
error: layer.error,
|
|
16780
16783
|
state: { ...layer.state }
|
|
16781
16784
|
};
|
|
16782
16785
|
}
|
|
@@ -17215,11 +17218,16 @@ var LayerManager = class {
|
|
|
17215
17218
|
renderTile,
|
|
17216
17219
|
beforeId: this._resolveBeforeId(layer.beforeId),
|
|
17217
17220
|
onGeoTIFFLoad: (_tiff, options) => {
|
|
17221
|
+
const boundsArrived = !layer.bounds;
|
|
17218
17222
|
layer.bounds = options.geographicBounds;
|
|
17219
17223
|
if (layer.zoomTo) {
|
|
17220
17224
|
layer.zoomTo = false;
|
|
17221
17225
|
this._fitBounds(layer.bounds);
|
|
17222
17226
|
}
|
|
17227
|
+
if (boundsArrived) this._emit({
|
|
17228
|
+
type: "rasterchange",
|
|
17229
|
+
layerId: layer.id
|
|
17230
|
+
});
|
|
17223
17231
|
}
|
|
17224
17232
|
});
|
|
17225
17233
|
}
|
|
@@ -18835,4 +18843,4 @@ var RasterControl = class {
|
|
|
18835
18843
|
//#endregion
|
|
18836
18844
|
export { colormaps_default as _, debounce as a, throttle as c, percentileFromHistogram as d, readBandNames as f, COLORMAP_ROW_COUNT as g, COLORMAP_OPTIONS as h, classNames as i, MAX_SAMPLE_TILES as l, COLORMAP_NAMES as m, PALETTE_COLORMAP as n, formatNumericValue as o, loadGeoTIFF as p, clamp as r, generateId as s, RasterControl as t, computeAutoStats as u };
|
|
18837
18845
|
|
|
18838
|
-
//# sourceMappingURL=RasterControl-
|
|
18846
|
+
//# sourceMappingURL=RasterControl-5SqPCn7_.js.map
|