Skip to content

Commit

Permalink
fix: eslint fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
duxinyue.dxy committed Nov 4, 2024
1 parent f5e4459 commit 1a69856
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/source/src/parser/raster-tile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,12 @@ export default function rasterTile(
if (isUrlError(data)) {
throw new Error('tile server url is error');
}

const {
extent = [Infinity, Infinity, -Infinity, -Infinity],
coordinates,
} = cfg;

let tileDataType: RasterTileType = cfg?.dataType || RasterTileType.IMAGE;
// Tip: RasterTileType.RGB 是彩色多通道的数据纹理,同样走数据纹理的请求
if (tileDataType === RasterTileType.RGB) {
Expand Down Expand Up @@ -74,8 +76,8 @@ export default function rasterTile(
return getTileImage(data as string | string[], tileParams, tile, cfg);
}
};
const tilesetOptions = { ...DEFAULT_CONFIG, ...cfg, getTileData };

const tilesetOptions = { ...DEFAULT_CONFIG, ...cfg, getTileData };
const rasterTileCoord = extentToCoord(coordinates, extent);

return {
Expand Down

0 comments on commit 1a69856

Please sign in to comment.