Skip to content

Commit fbd7525

Browse files
committed
Merge branch 'master' of https://github.com/SuperMap/iClient-JavaScript into master
2 parents 0f5cd6c + 96f570f commit fbd7525

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)