未验证 提交 7d28bc7d 编写于 作者: A abigale Li 提交者: GitHub

Merge pull request #10183 from deqingli/master

refactor(map): add segment ignore threshold in map draw
......@@ -214,6 +214,7 @@ MapDraw.prototype = {
|| nameMap.set(region.name, new graphic.Group());
var compoundPath = new graphic.CompoundPath({
segmentIgnoreThreshold: 1,
shape: {
paths: []
}
......@@ -249,6 +250,7 @@ MapDraw.prototype = {
return;
}
compoundPath.shape.paths.push(new graphic.Polygon({
segmentIgnoreThreshold: 1,
shape: {
points: geometry.exterior
}
......@@ -256,6 +258,7 @@ MapDraw.prototype = {
for (var i = 0; i < (geometry.interiors ? geometry.interiors.length : 0); i++) {
compoundPath.shape.paths.push(new graphic.Polygon({
segmentIgnoreThreshold: 1,
shape: {
points: geometry.interiors[i]
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册