apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.48k stars 19.62k forks source link

3D Globe should have zoom in and zoom out feature. #14043

Closed eapatel closed 3 years ago

eapatel commented 3 years ago

What problem does this feature solve?

In my project, I have implemented a 3D globe. I can zoom in and zoom out using the mouse wheel. My requirement is to get zoom in and zoom out by clicking the button just like in Google Maps. On clicking the zoom in (+) button, the globe should zoom in and by clicking zoom out (-), the globe should zoom out.

What does the proposed API look like?

chartDataZoom event used but it doesn't work with 3d Globe. This event is only work when toolbar option is use. Can you suggest relevant API for Globe zoom?

echarts-bot[bot] commented 3 years ago

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 dev@echarts.apache.org. Please attach the issue link if it's a technical question.

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

Have a nice day! 🍵

eapatel commented 3 years ago

Can anyone please respond?

eapatel commented 3 years ago

I solved this issue by adding two sperate buttons for zoom in and zoom out the 3D Globe by setting globe's distance and maxDistance property to implement zoom out and distance and minDistance property to implement zoom In feature.