Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v3版本地图数据重绘repaint属性,v4版本没有了。有可支持的重绘属性吗?v4 paint不生效 #2229

Closed
liangchaofei opened this issue Mar 26, 2020 · 7 comments
Labels

Comments

@liangchaofei
Copy link

  • G2 Version: v4
  • Platform:mac
  • Mini Showcase(like screenshots):v3版本地图数据重绘repaint属性,v4版本没有了。有可支持的重绘属性吗?v4 paint不生效
  • CodePen Link:
@simaQ
Copy link
Contributor

simaQ commented Mar 27, 2020

chart.render(true);

在升级文档有说明。

@simaQ simaQ closed this as completed Mar 27, 2020
@liangchaofei
Copy link
Author

render

用了这个api,没有生效哈。场景是切换国家地图,切换完,地图会变小。

@liangchaofei
Copy link
Author

更新数据代码如下:但是切换国家地图,地图会变小
updataData = (userData: MapItem[], filters: FilterItems) => {
const { bgDv, userDv } = this.initData(userData, filters);
this.chart.render(true);
this.bgView.changeData(bgDv.rows);
this.pointView.changeData(userDv.rows);
};

@liangchaofei
Copy link
Author

chart.render(true);

在升级文档有说明。

更新数据代码如下:但是切换国家地图,地图会变小
updataData = (userData: MapItem[], filters: FilterItems) => {
const { bgDv, userDv } = this.initData(userData, filters);
this.chart.render(true);
this.bgView.changeData(bgDv.rows);
this.pointView.changeData(userDv.rows);
};

@simaQ simaQ reopened this Mar 27, 2020
@simaQ
Copy link
Contributor

simaQ commented Mar 27, 2020

恩,这个问题应该和 #2232 是一个问题,下周我们会修复掉

@simaQ simaQ added the Bug label Mar 27, 2020
@simaQ simaQ added this to the v4.0.4 milestone Mar 27, 2020
@liangchaofei
Copy link
Author

恩,这个问题应该和 #2232 是一个问题,下周我们会修复掉

感谢,辛苦修复后同步下

@simaQ simaQ removed this from the v4.0.4 milestone Apr 3, 2020
@hustcc hustcc closed this as completed Apr 27, 2020
@hustcc
Copy link
Member

hustcc commented Apr 27, 2020

恩,这个问题应该和 #2232 是一个问题,下周我们会修复掉

感谢,辛苦修复后同步下

已修复,请查验。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants