@basemaps/landing 6.38.0 → 6.39.0

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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [6.39.0](https://github.com/linz/basemaps/compare/v6.38.0...v6.39.0) (2023-01-25)
7
+
8
+
9
+ ### Features
10
+
11
+ * **landing:** Hidden overflow title in the debug page. ([#2625](https://github.com/linz/basemaps/issues/2625)) ([cd3a192](https://github.com/linz/basemaps/commit/cd3a192b019bc822ba4127f5304092949ef54615))
12
+
13
+
14
+
15
+
16
+
6
17
  # [6.38.0](https://github.com/linz/basemaps/compare/v6.37.0...v6.38.0) (2022-12-11)
7
18
 
8
19
 
@@ -7,7 +7,7 @@
7
7
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@master/en/v6.3.1/css/ol.css"
8
8
  type="text/css" />
9
9
  <script src="https://cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@master/en/v6.3.1/build/ol.js"></script>
10
- <script src="../lib/attribution-6.38.0-b4a0b401b1a4cc45.js" integrity="sha512-tKC0AbGkzEXQ42XNQaATba8ZU1/ed8I1pI3e0XYfq8AWBxvjnAMA1x8rt+h2O+R68L14byRdoia4s0FBv7q7tA=="></script>
10
+ <script src="../lib/attribution-6.39.0-b4a0b401b1a4cc45.js" integrity="sha512-tKC0AbGkzEXQ42XNQaATba8ZU1/ed8I1pI3e0XYfq8AWBxvjnAMA1x8rt+h2O+R68L14byRdoia4s0FBv7q7tA=="></script>
11
11
  </head>
12
12
 
13
13
  <body>
@@ -169,6 +169,8 @@ button {
169
169
 
170
170
  .debug__value {
171
171
  display: flex;
172
+ overflow: hidden;
173
+ white-space: nowrap;
172
174
  align-items: center;
173
175
  }
174
176
 
@@ -53239,15 +53239,13 @@ var Projection2 = class {
53239
53239
  features: files.map((f) => this.boundsToGeoJsonFeature(f, { name: f.name }))
53240
53240
  };
53241
53241
  }
53242
- static getTiffResZoom(tms, gsd, blockFactor = 1) {
53243
- let z = 0;
53244
- for (; z < tms.zooms.length; ++z) {
53245
- if (tms.pixelScale(z) <= gsd * blockFactor)
53242
+ static getTiffResZoom(tms, pixelScale) {
53243
+ for (let z = 0; z < tms.zooms.length; z++) {
53244
+ const diff = tms.pixelScale(z) - pixelScale;
53245
+ if (diff < this.AllowedFloatingError)
53246
53246
  return z;
53247
53247
  }
53248
- if (z === tms.zooms.length)
53249
- return z - 1;
53250
- throw new Error("ResZoom not found");
53248
+ return tms.zooms.length - 1;
53251
53249
  }
53252
53250
  static tileToWgs84Bbox(tms, tile) {
53253
53251
  const ul = tms.tileToSource(tile);
@@ -53288,8 +53286,8 @@ var Projection2 = class {
53288
53286
  }
53289
53287
  return point;
53290
53288
  }
53291
- static findAlignmentLevels(tms, tile, gsd) {
53292
- return Math.max(0, this.getTiffResZoom(tms, gsd, 2) - tile.z);
53289
+ static findAlignmentLevels(tms, tile, gsd, blockFactor = 2) {
53290
+ return Math.max(0, this.getTiffResZoom(tms, gsd * blockFactor) - tile.z);
53293
53291
  }
53294
53292
  static getImagePixelWidth(tms, tile, targetZoom) {
53295
53293
  const ul = tms.tileToSource(tile);
@@ -53297,6 +53295,7 @@ var Projection2 = class {
53297
53295
  return Math.round((lr.x - ul.x) / tms.pixelScale(targetZoom)) * 2;
53298
53296
  }
53299
53297
  };
53298
+ Projection2.AllowedFloatingError = 1e-8;
53300
53299
 
53301
53300
  // ../shared/build/url.js
53302
53301
  function toQueryString(r2) {
@@ -53694,7 +53693,7 @@ var Config = {
53694
53693
  return "UA-23232486-4";
53695
53694
  },
53696
53695
  get Version() {
53697
- return "v6.38.0";
53696
+ return "v6.39.0";
53698
53697
  },
53699
53698
  map: new MapConfig()
53700
53699
  };