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

Error when zoom geo programatically #11895

Closed
JasonSubMara opened this issue Dec 23, 2019 · 12 comments
Closed

Error when zoom geo programatically #11895

JasonSubMara opened this issue Dec 23, 2019 · 12 comments

Comments

@JasonSubMara
Copy link

JasonSubMara commented Dec 23, 2019

Version

4.5.0

Steps to reproduce

主要关联代码:

geo: {
  zoom: 1,
  roam: 'move'
}

之后通过修改geo里面的zoom ,
地图上的散点实时渲染至对应缩放区域,而背景地图需要在地图上移动一下才渲染至对应位置

What is expected?

解决该问题并告知原因

What is actually happening?

地图上的散点实时渲染至对应缩放区域,而背景地图需要在地图上移动一下才渲染至对应位置

@echarts-bot
Copy link

echarts-bot bot commented Dec 23, 2019

Hi! We've received your issue and please be patient to get responded. 🎉
The average response time is expected to be within one day for weekdays.

In the meanwhile, please make sure that you have posted enough image to demo your request. You may also check out the API and chart option to get the answer.

If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to [email protected]. Please attach the issue link if it's a technical questions.

If you are interested in the project, you may also subscribe our mail list.

Have a nice day! 🍵

@echarts-bot echarts-bot bot added bug pending We are not sure about whether this is a bug/new feature. waiting-for: community labels Dec 23, 2019
@JasonSubMara
Copy link
Author

贴图描述:
反馈1
反馈2

@100pah
Copy link
Member

100pah commented Dec 23, 2019

It is a bug.

@100pah 100pah added topic: geo priority: high and removed pending We are not sure about whether this is a bug/new feature. labels Dec 23, 2019
@echarts-bot
Copy link

echarts-bot bot commented Dec 23, 2019

This issue is labeled with priority: high, which means it's a frequently asked problem and we will fix it ASAP.

@100pah 100pah added this to the 4.8.0 milestone Dec 23, 2019
@21paradox
Copy link

目前可以通过手动设置dirty暂时解决,期待官方尽快修复
echartInstance._componentsViews[index]._mapDraw._controllerHost.target.__dirty = true;

@JasonSubMara
Copy link
Author

目前可以通过手动设置dirty暂时解决,期待官方尽快修复
echartInstance._componentsViews[index]._mapDraw._controllerHost.target.__dirty = true;

此项设置是在外层修改还是在series内设置?

@21paradox
Copy link

21paradox commented Jan 3, 2020

目前可以通过手动设置dirty暂时解决,期待官方尽快修复
echartInstance._componentsViews[index]._mapDraw._controllerHost.target.__dirty = true;

此项设置是在外层修改还是在series内设置?

在外层修改。就是在setOption之前手动改下__dirty变量

@JasonSubMara
Copy link
Author

目前可以通过手动设置dirty暂时解决,期待官方尽快修复
echartInstance._componentsViews[index]._mapDraw._controllerHost.target.__dirty = true;

此项设置是在外层修改还是在series内设置?

在外层修改。就是在setOption之前手动改下__dirty变量
image

@JasonSubMara
Copy link
Author

对的吧?

@21paradox
Copy link

对的吧?

index要改成你对应的geo组件的那个...

@Ovilia Ovilia changed the title 动态修改地图缩放大小时,出现问题 Error when zoom geo programatically Mar 2, 2020
@alex2wong alex2wong self-assigned this Mar 2, 2020
@alex2wong
Copy link
Contributor

I will take a look this issue later.

@alex2wong
Copy link
Contributor

fixed in #12340 by @Ovilia

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

No branches or pull requests

5 participants