Skip to content

Commit 32ec9dd

Browse files
[update] 去除?.语法
(review by cxh)
1 parent e6ea0fd commit 32ec9dd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/common/mapping/WebMapV3.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -816,9 +816,11 @@ export function createWebMapV3Extending(SuperClass, { MapManager, mapRepo, crsMa
816816
simpleKeys.forEach((k) => {
817817
const isOutlineKey = k === 'outlineColor' || k === 'outlineWidth';
818818
const hasOutline =
819-
styleSetting?.outline?.value === true ||
820-
styleSetting?.antialias?.value === true;
821-
819+
styleSetting &&
820+
(
821+
(styleSetting.outline && styleSetting.outline.value === true) ||
822+
(styleSetting.antialias && styleSetting.antialias.value === true)
823+
);
822824
if (isOutlineKey && !hasOutline) {
823825
return;
824826
}

0 commit comments

Comments
 (0)