Skip to content

Commit

Permalink
fix: 修复rastertile类型对应请求无法自定义请求头参数 (#2399)
Browse files Browse the repository at this point in the history
* fix: 修复rastertile类型对应请求无法自定义请求头参数

* chore: changeset log

* chore: format

---------

Co-authored-by: 谨欣 <[email protected]>
  • Loading branch information
Dreammy23 and 谨欣 authored Apr 12, 2024
1 parent e91b406 commit f1b8c29
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/late-windows-hunt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@antv/l7-source': patch
---

fix: 修复 rastertile 类型对应请求无法自定义请求头参数
1 change: 1 addition & 0 deletions packages/source/src/utils/tile/getRasterTile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
Expand Down

0 comments on commit f1b8c29

Please sign in to comment.