From 807ee85ba44a0569f637dbbe2d4e7c2dbab69b51 Mon Sep 17 00:00:00 2001 From: Desplandis Date: Sat, 16 Nov 2024 10:08:10 +0000 Subject: [PATCH] deploy: iTowns/itowns@452ca7eaf31a4da541252bffea063955d29b8885 --- itowns/dev/examples/js/plugins/COGParser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/itowns/dev/examples/js/plugins/COGParser.js b/itowns/dev/examples/js/plugins/COGParser.js index 612598f5..f8d1294c 100644 --- a/itowns/dev/examples/js/plugins/COGParser.js +++ b/itowns/dev/examples/js/plugins/COGParser.js @@ -235,7 +235,7 @@ const COGParser = (function _() { */ parse: async function _(data, options) { const source = options.in; - const tileExtent = options.extent.as(source.crs); + const tileExtent = options.extent.isExtent ? options.extent.as(source.crs) : options.extent.toExtent(source.crs); const level = selectLevel(source, tileExtent, source.tileWidth, source.tileHeight); const viewport = makeWindowFromExtent(source, tileExtent, level.resolution);