提交 f12cb62d 编写于 作者: P pissang

fix(map): fix map label not display caused by merge

上级 dc8f5b54
......@@ -727,8 +727,8 @@ function resetLabelForRegion(
const textEl = el.getTextContent();
if (textEl) {
textEl.x = labelXY ? labelXY[0] : 0;
textEl.y = labelXY ? labelXY[1] : 0;
mapLabelTransform(textEl).x = textEl.x = labelXY ? labelXY[0] : 0;
mapLabelTransform(textEl).y = textEl.y = labelXY ? labelXY[1] : 0;
textEl.z2 = 10;
textEl.afterUpdate = labelTextAfterUpdate;
}
......
......@@ -19,9 +19,8 @@
import BoundingRect from 'zrender/src/core/BoundingRect';
import { HashMap } from 'zrender/src/core/util';
import { Group, Path } from '../../util/graphic';
import { Group } from '../../util/graphic';
import { Region } from './Region';
import Element from 'zrender/src/Element';
export type GeoSVGSourceInput = 'string' | Document | SVGElement;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册