Skip to content

Commit ce1dcc3

Browse files
author
chenguanglin
committed
【update】线标签沿线标注直线显示,不弯曲
review by zhaoq
1 parent 28c00e0 commit ce1dcc3

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/openlayers/mapping/WebMap.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2560,13 +2560,14 @@ export class WebMap extends Observable {
25602560
backgroundFill: new FillStyle({ color: backgroundFill }),
25612561
padding: [3, 3, 3, 3],
25622562
offsetX: layerInfo.featureType === 'POINT' ? offsetX : 0,
2563-
offsetY: layerInfo.featureType === 'POINT' ? offsetY : 0
2563+
offsetY: layerInfo.featureType === 'POINT' ? offsetY : 0,
2564+
maxAngle: 0
25642565
};
25652566
if (outlineWidth > 0) {
2566-
option.stroke = new StrokeStyle({
2567-
color: outlineColor,
2568-
width: outlineWidth
2569-
});
2567+
option.stroke = new StrokeStyle({
2568+
color: outlineColor,
2569+
width: outlineWidth
2570+
});
25702571
}
25712572

25722573
return new Style({

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