Skip to content

Commit e2c1869

Browse files
committed
【bug】1) 修复webMap UT
1 parent d80ce7a commit e2c1869

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/openlayers/core/StyleUtils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1075,7 +1075,7 @@ export class StyleUtils {
10751075

10761076
let fontSize = isRank ? 2 * parameters.radius + "px" : parameters.fontSize;
10771077

1078-
const {offsetX, offsetY, rotation} = parameters;
1078+
const {offsetX, offsetY, rotation=0} = parameters;
10791079
const offset = StyleUtils.getTextOffset(fontSize, offsetX, offsetY);
10801080
return new Style({
10811081
text: new Text({

test/resources/WebMapV5.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)