Skip to content

Commit

Permalink
fix: fix typing after ol and ol-util upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
annarieger committed Nov 21, 2022
1 parent f354aeb commit 21ff5c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parser/SHOGunApplicationUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -439,10 +439,10 @@ class SHOGunApplicationUtil<T extends Application, S extends Layer> {
return vectorLayer;
}

getMapScales(resolutions: number[], projUnit: string = 'm'): number[] {
getMapScales(resolutions: number[], projUnit: Units = 'm'): number[] {
return resolutions
.map((res: number) =>
MapUtil.roundScale(MapUtil.getScaleForResolution(res, projUnit)
MapUtil.roundScale(MapUtil.getScaleForResolution(res, projUnit) as number
))
.reverse();
}
Expand Down

0 comments on commit 21ff5c4

Please sign in to comment.