@gisatcz/deckgl-geolib 1.11.0-dev.4 → 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
package/dist/cjs/index.js
CHANGED
|
@@ -15216,6 +15216,9 @@ function getDelatinTileMesh(meshMaxError, width, height, terrain) {
|
|
|
15216
15216
|
|
|
15217
15217
|
const EARTH_CIRCUMFERENCE = 40075000.0;
|
|
15218
15218
|
const EARTH_HALF_CIRCUMFERENCE = 20037500.0;
|
|
15219
|
+
const CogTilesGeoImageOptionsDefaults = {
|
|
15220
|
+
blurredTexture: true,
|
|
15221
|
+
};
|
|
15219
15222
|
class CogTiles {
|
|
15220
15223
|
constructor(options) {
|
|
15221
15224
|
this.zoomRange = [0, 0];
|
|
@@ -15224,7 +15227,7 @@ class CogTiles {
|
|
|
15224
15227
|
this.loaded = false;
|
|
15225
15228
|
this.geo = new GeoImage();
|
|
15226
15229
|
this.lzw = new LZWDecoder$1();
|
|
15227
|
-
this.options = options;
|
|
15230
|
+
this.options = Object.assign(Object.assign({}, CogTilesGeoImageOptionsDefaults), options);
|
|
15228
15231
|
}
|
|
15229
15232
|
initializeCog(url) {
|
|
15230
15233
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -15537,7 +15540,6 @@ class CogBitmapLayer extends core.CompositeLayer {
|
|
|
15537
15540
|
//
|
|
15538
15541
|
// tileSize: number;
|
|
15539
15542
|
//
|
|
15540
|
-
// blurredTexture: boolean;
|
|
15541
15543
|
initializeState(context) {
|
|
15542
15544
|
const _super = Object.create(null, {
|
|
15543
15545
|
initializeState: { get: () => super.initializeState }
|
|
@@ -15607,7 +15609,8 @@ class CogBitmapLayer extends core.CompositeLayer {
|
|
|
15607
15609
|
}
|
|
15608
15610
|
renderSubLayers(props) {
|
|
15609
15611
|
const SubLayerClass = this.getSubLayerClass('image', layers.BitmapLayer);
|
|
15610
|
-
const { blurredTexture
|
|
15612
|
+
const { blurredTexture } = this.state.bitmapCogTiles.options;
|
|
15613
|
+
const { opacity, clampToTerrain } = this.props;
|
|
15611
15614
|
const { data } = props;
|
|
15612
15615
|
if (!data) {
|
|
15613
15616
|
return null;
|
|
@@ -15638,7 +15641,8 @@ class CogBitmapLayer extends core.CompositeLayer {
|
|
|
15638
15641
|
clampToTerrain,
|
|
15639
15642
|
},
|
|
15640
15643
|
},
|
|
15641
|
-
extent: this.state.bitmapCogTiles.cog
|
|
15644
|
+
extent: this.state.bitmapCogTiles.cog
|
|
15645
|
+
? this.state.bitmapCogTiles.getBoundsAsLatLon(this.state.bitmapCogTiles.cog) : null,
|
|
15642
15646
|
tileSize,
|
|
15643
15647
|
minZoom: this.minZoom,
|
|
15644
15648
|
maxZoom: this.maxZoom,
|