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

求一个中国地图带气泡或深浅填充的示例 #3343

Closed
Hsugar opened this issue Mar 25, 2021 · 3 comments
Closed

求一个中国地图带气泡或深浅填充的示例 #3343

Hsugar opened this issue Mar 25, 2021 · 3 comments

Comments

@Hsugar
Copy link

Hsugar commented Mar 25, 2021

  • G2 4.X:
    看了文档api实在是找不到对应的参数及写法 😭
    强烈建议在单独加上地图相关的API,目前只能根据栗子去猜.. 然而栗子不够全面哦~~

需求如下

1、根据数据来展示渲染区域的深浅颜色
2、图例在什么情况会展示出来(如下链接 就没有图例)

https://codesandbox.io/s/brave-mccarthy-u863n?file=/index.js

@hustcc
Copy link
Member

hustcc commented Mar 25, 2021

官网 demo 就有:

逻辑上,地图就是行政区划的围栏信息使用 polygon 去绘制,气泡图就用 point 绘制即可。

@hustcc hustcc closed this as completed Mar 25, 2021
@Hsugar
Copy link
Author

Hsugar commented Mar 25, 2021

demo1 并不是全区域展示对应深浅,是指定区域绘制指定颜色

气泡已经实现了。

@hustcc
Copy link
Member

hustcc commented Mar 25, 2021

你要的是做成什么样子?

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

No branches or pull requests

2 participants