ol 9.0.0-dev.1707149076355 → 9.0.0-dev.1707341212133
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/ol.js +2 -2
- package/dist/ol.js.map +1 -1
- package/package.json +1 -1
- package/source/WMTS.js +1 -1
- package/source/ogcTileUtil.d.ts +4 -0
- package/source/ogcTileUtil.d.ts.map +1 -1
- package/source/ogcTileUtil.js +9 -1
- package/util.js +1 -1
package/package.json
CHANGED
package/source/WMTS.js
CHANGED
|
@@ -361,7 +361,7 @@ export default WMTS;
|
|
|
361
361
|
*/
|
|
362
362
|
export function optionsFromCapabilities(wmtsCap, config) {
|
|
363
363
|
const layers = wmtsCap['Contents']['Layer'];
|
|
364
|
-
const l = layers
|
|
364
|
+
const l = layers?.find(function (elt) {
|
|
365
365
|
return elt['Identifier'] == config['layer'];
|
|
366
366
|
});
|
|
367
367
|
if (!l) {
|
package/source/ogcTileUtil.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ogcTileUtil.d.ts","sourceRoot":"","sources":["ogcTileUtil.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ogcTileUtil.d.ts","sourceRoot":"","sources":["ogcTileUtil.js"],"names":[],"mappings":"AAoFA;;;;;GAKG;AAEH;;;;;;;GAOG;AAEH;;;;GAIG;AACH,6CAJW,MAAM,IAAI,CAAC,mCAEV,MAAM,CA6BjB;AAED;;;;;GAKG;AACH,gDALW,MAAM,IAAI,CAAC,+EAGV,MAAM,CAiDjB;AA2ND;;;GAGG;AACH,2CAHW,UAAU,GACT,QAAQ,WAAW,CAAC,CAM/B;;;;;iBAxUa,MAAM;;;;UACN,OAAO,yBAAyB,EAAE,OAAO;;;;iBACzC,OAAO,YAAY,EAAE,WAAW;;;;;;SAKhC,MAAM;;;;eACN,MAAM;;;;;;;;gBAEN,OAAO,uBAAuB,EAAE,OAAO;;;;;;uBAlFxC,KAAK,GAAG,QAAQ;6BAIhB,SAAS,GAAG,YAAY;;;;;cAKvB,QAAQ;;;;;;;;;;;;;;;;WAIR,MAAM,IAAI,CAAC;;;;;;SAKX,MAAM;;;;UACN,MAAM;;;;UACN,MAAM;;;;;;gBAKN,MAAM;;;;gBACN,MAAM;;;;gBACN,MAAM;;;;gBACN,MAAM;;;;gBACN,MAAM;;;;;;QAKN,MAAM;;;;SACN,MAAM;;;;;;;;kBAEN,MAAM,UAAU,CAAC;;;;;;QAKjB,MAAM;;;;cACN,MAAM;;;;mBACN,MAAM,MAAM,CAAC;;;;;;;;iBAEb,MAAM;;;;kBACN,MAAM;;;;eACN,MAAM;;;;gBACN,MAAM"}
|
package/source/ogcTileUtil.js
CHANGED
|
@@ -48,6 +48,7 @@ import {getIntersection as intersectExtents} from '../extent.js';
|
|
|
48
48
|
* @typedef {Object} TileMatrixSet
|
|
49
49
|
* @property {string} id The tile matrix set identifier.
|
|
50
50
|
* @property {string} crs The coordinate reference system.
|
|
51
|
+
* @property {Array<string>} [orderedAxes] Axis order.
|
|
51
52
|
* @property {Array<TileMatrix>} tileMatrices Array of tile matrices.
|
|
52
53
|
*/
|
|
53
54
|
|
|
@@ -206,7 +207,14 @@ function parseTileMatrixSet(
|
|
|
206
207
|
throw new Error(`Unsupported CRS: ${tileMatrixSet.crs}`);
|
|
207
208
|
}
|
|
208
209
|
}
|
|
209
|
-
const
|
|
210
|
+
const orderedAxes = tileMatrixSet.orderedAxes;
|
|
211
|
+
const backwards =
|
|
212
|
+
(orderedAxes
|
|
213
|
+
? orderedAxes
|
|
214
|
+
.slice(0, 2)
|
|
215
|
+
.map((s) => s.replace(/E|X|Lon/i, 'e').replace(/N|Y|Lat/i, 'n'))
|
|
216
|
+
.join('')
|
|
217
|
+
: projection.getAxisOrientation().substr(0, 2)) !== 'en';
|
|
210
218
|
|
|
211
219
|
const matrices = tileMatrixSet.tileMatrices;
|
|
212
220
|
|
package/util.js
CHANGED