Skip to content

Commit

Permalink
Update geo-common.md
Browse files Browse the repository at this point in the history
  • Loading branch information
alex2wong committed Mar 11, 2020
1 parent a291db8 commit 2118680
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions en/option/component/geo-common.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,22 @@ Name mapping for customized areas. For example:
}
```

#${prefix} nameProperty(string) = 'name'

customized property key for GeoJSON feature. By default, 'name' is used as primary key to identify GeoJSON feature.
For example:
```js
{
nameProperty: 'NAME', // key to connect following data point to GeoJSON region {"type":"Feature","id":"01","properties":{"NAME":"Alabama"}, "geometry": { ... }}
data:[
{name: 'Alabama', value: 4822023},
{name: 'Alaska', value: 731449},
]
}
```



## selectedMode(boolean|string) = false
Selected mode decides whether multiple selecting is supported. By default, `false` is used for disabling selection. Its value can also be `'single'` for selecting single area, or `'multiple'` for selecting multiple areas.

Expand Down

0 comments on commit 2118680

Please sign in to comment.