This is an automated email from the ASF dual-hosted git repository.
yixiu pushed a commit to branch fix-GeoJSON-property
in repository https://gitbox.apache.org/repos/asf/incubator-echarts-doc.git
The following commit(s) were added to refs/heads/fix-GeoJSON-property by this
push:
new 58ee220 add new option 'nameProperty' in map series option
58ee220 is described below
commit 58ee220a23930f0824cdeb4bd356d8a5c6c21a5f
Author: alex2wong <[email protected]>
AuthorDate: Fri May 1 22:41:15 2020 +0800
add new option 'nameProperty' in map series option
fix chinese doc
---
zh/option/component/geo-common.md | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/zh/option/component/geo-common.md
b/zh/option/component/geo-common.md
index 15298eb..fdba5a5 100644
--- a/zh/option/component/geo-common.md
+++ b/zh/option/component/geo-common.md
@@ -89,6 +89,20 @@ boundingCoords: [
}
```
+#${prefix} nameProperty(string) = 'name'
+
+默认是 ’name‘,针对 GeoJSON 要素的自定义属性名称,作为主键用于关联数据点和 GeoJSON 地理要素。
+例如:
+```js
+{
+ nameProperty: 'NAME', // 数据点中的 name:Alabama 会关联到 GeoJSON 中 NAME 属性值为
Alabama 的地理要素{"type":"Feature","id":"01","properties":{"NAME":"Alabama"},
"geometry": { ... }}
+ data:[
+ {name: 'Alabama', value: 4822023},
+ {name: 'Alaska', value: 731449},
+ ]
+}
+```
+
##${prefix} selectedMode(boolean|string) = false
选中模式,表示是否支持多个选中,默认关闭,支持布尔值和字符串,字符串取值可选`'single'`表示单选,或者`'multiple'`表示多选。
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]