From f1b8c295c44d15f75ce0f60401cf03cc79e9d96b Mon Sep 17 00:00:00 2001 From: Dreammy23 Date: Fri, 12 Apr 2024 17:29:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Drastertile=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E5=AF=B9=E5=BA=94=E8=AF=B7=E6=B1=82=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E8=AF=B7=E6=B1=82=E5=A4=B4=E5=8F=82?= =?UTF-8?q?=E6=95=B0=20(#2399)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: 修复rastertile类型对应请求无法自定义请求头参数 * chore: changeset log * chore: format --------- Co-authored-by: 谨欣 --- .changeset/late-windows-hunt.md | 5 +++++ packages/source/src/utils/tile/getRasterTile.ts | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/late-windows-hunt.md diff --git a/.changeset/late-windows-hunt.md b/.changeset/late-windows-hunt.md new file mode 100644 index 0000000000..2fd363c7b8 --- /dev/null +++ b/.changeset/late-windows-hunt.md @@ -0,0 +1,5 @@ +--- +'@antv/l7-source': patch +--- + +fix: 修复 rastertile 类型对应请求无法自定义请求头参数 diff --git a/packages/source/src/utils/tile/getRasterTile.ts b/packages/source/src/utils/tile/getRasterTile.ts index 5abcfff49b..33115af22c 100644 --- a/packages/source/src/utils/tile/getRasterTile.ts +++ b/packages/source/src/utils/tile/getRasterTile.ts @@ -71,6 +71,7 @@ export const getTileImage = async ( return new Promise((resolve, reject) => { const xhr = getImage( { + ...cfg?.requestParameters, url: imageUrl, type: cfg?.requestParameters?.type || 'arrayBuffer', },