itowns 2.44.3-next.19 → 2.44.3-next.20

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.
@@ -235,7 +235,7 @@ const COGParser = (function _() {
235
235
  */
236
236
  parse: async function _(data, options) {
237
237
  const source = options.in;
238
- const tileExtent = options.extent.as(source.crs);
238
+ const tileExtent = options.extent.isExtent ? options.extent.as(source.crs) : options.extent.toExtent(source.crs);
239
239
 
240
240
  const level = selectLevel(source, tileExtent, source.tileWidth, source.tileHeight);
241
241
  const viewport = makeWindowFromExtent(source, tileExtent, level.resolution);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itowns",
3
- "version": "2.44.3-next.19",
3
+ "version": "2.44.3-next.20",
4
4
  "description": "A JS/WebGL framework for 3D geospatial data visualization",
5
5
  "type": "module",
6
6
  "main": "lib/Main.js",