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

🐛 [BUG] 在choropleth 中自定义 geodata 配置项, label不显示 #340

Closed
CodingAndSleeping opened this issue Jan 2, 2024 · 2 comments

Comments

@CodingAndSleeping
Copy link

CodingAndSleeping commented Jan 2, 2024

      joinBy: {
        sourceField: "name",
        geoField: "name",
        geoData: district as unknown as GeoJSON.FeatureCollection, // 这里是自己的geojson文件 
      },

label标签不显示

label不生效

@CodingAndSleeping CodingAndSleeping changed the title 🐛 [BUG] 在choropleth 中自定义 geodata 配置项, label 🐛 [BUG] 在choropleth 中自定义 geodata 配置项, label不显示 Jan 2, 2024
@CodingAndSleeping
Copy link
Author

geojson中 的properties属性中缺少 centorid属性,导致不显示label标签

@lvisei
Copy link
Member

lvisei commented Jan 3, 2024

自定义 geoData 需提供 label 标签位置的 centorid 属性

@lvisei lvisei closed this as completed Jan 3, 2024
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