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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy