@gisatcz/deckgl-geolib 1.11.0-dev.5 → 1.11.0-dev.6
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/cjs/index.js +8 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/index.min.js +4 -4
- package/dist/cjs/index.min.js.map +1 -1
- package/dist/cjs/types/cogbitmaplayer/CogBitmapLayer.d.ts +1 -2
- package/dist/esm/index.js +8 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.min.js +3 -3
- package/dist/esm/index.min.js.map +1 -1
- package/dist/esm/types/cogbitmaplayer/CogBitmapLayer.d.ts +1 -2
- package/package.json +1 -1
- package/src/cogbitmaplayer/CogBitmapLayer.ts +5 -6
- package/src/cogtiles/cogtiles.ts +5 -1
|
@@ -25,8 +25,6 @@ type _CogBitmapLayerProps = {
|
|
|
25
25
|
rasterData: URLTemplate;
|
|
26
26
|
/** Bounding box of the bitmap image, [minX, minY, maxX, maxY] in world coordinates. * */
|
|
27
27
|
bounds: Bounds | null;
|
|
28
|
-
/** Whether the rendered texture should be blurred or not - effects minFilter and maxFilter * */
|
|
29
|
-
blurredTexture?: boolean;
|
|
30
28
|
/** Weather visualise the entire image with specified opacity (0-1) * */
|
|
31
29
|
opacity?: number;
|
|
32
30
|
/** Whether the rendered texture should be clamped to terrain * */
|
|
@@ -51,6 +49,7 @@ export default class CogBitmapLayer<ExtraPropsT extends {} = {}> extends Composi
|
|
|
51
49
|
isTiled?: boolean;
|
|
52
50
|
terrain?: MeshAttributes;
|
|
53
51
|
zRange?: ZRange | null;
|
|
52
|
+
bitmapCogTiles: any;
|
|
54
53
|
};
|
|
55
54
|
initializeState(context: any): Promise<void>;
|
|
56
55
|
init(rasterUrl: string): Promise<void>;
|
package/dist/esm/index.js
CHANGED
|
@@ -15214,6 +15214,9 @@ function getDelatinTileMesh(meshMaxError, width, height, terrain) {
|
|
|
15214
15214
|
|
|
15215
15215
|
const EARTH_CIRCUMFERENCE = 40075000.0;
|
|
15216
15216
|
const EARTH_HALF_CIRCUMFERENCE = 20037500.0;
|
|
15217
|
+
const CogTilesGeoImageOptionsDefaults = {
|
|
15218
|
+
blurredTexture: true,
|
|
15219
|
+
};
|
|
15217
15220
|
class CogTiles {
|
|
15218
15221
|
constructor(options) {
|
|
15219
15222
|
this.zoomRange = [0, 0];
|
|
@@ -15222,7 +15225,7 @@ class CogTiles {
|
|
|
15222
15225
|
this.loaded = false;
|
|
15223
15226
|
this.geo = new GeoImage();
|
|
15224
15227
|
this.lzw = new LZWDecoder$1();
|
|
15225
|
-
this.options = options;
|
|
15228
|
+
this.options = Object.assign(Object.assign({}, CogTilesGeoImageOptionsDefaults), options);
|
|
15226
15229
|
}
|
|
15227
15230
|
initializeCog(url) {
|
|
15228
15231
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -15535,7 +15538,6 @@ class CogBitmapLayer extends CompositeLayer {
|
|
|
15535
15538
|
//
|
|
15536
15539
|
// tileSize: number;
|
|
15537
15540
|
//
|
|
15538
|
-
// blurredTexture: boolean;
|
|
15539
15541
|
initializeState(context) {
|
|
15540
15542
|
const _super = Object.create(null, {
|
|
15541
15543
|
initializeState: { get: () => super.initializeState }
|
|
@@ -15605,7 +15607,8 @@ class CogBitmapLayer extends CompositeLayer {
|
|
|
15605
15607
|
}
|
|
15606
15608
|
renderSubLayers(props) {
|
|
15607
15609
|
const SubLayerClass = this.getSubLayerClass('image', BitmapLayer);
|
|
15608
|
-
const { blurredTexture
|
|
15610
|
+
const { blurredTexture } = this.state.bitmapCogTiles.options;
|
|
15611
|
+
const { opacity, clampToTerrain } = this.props;
|
|
15609
15612
|
const { data } = props;
|
|
15610
15613
|
if (!data) {
|
|
15611
15614
|
return null;
|
|
@@ -15636,7 +15639,8 @@ class CogBitmapLayer extends CompositeLayer {
|
|
|
15636
15639
|
clampToTerrain,
|
|
15637
15640
|
},
|
|
15638
15641
|
},
|
|
15639
|
-
extent: this.state.bitmapCogTiles.cog
|
|
15642
|
+
extent: this.state.bitmapCogTiles.cog
|
|
15643
|
+
? this.state.bitmapCogTiles.getBoundsAsLatLon(this.state.bitmapCogTiles.cog) : null,
|
|
15640
15644
|
tileSize,
|
|
15641
15645
|
minZoom: this.minZoom,
|
|
15642
15646
|
maxZoom: this.maxZoom,
|