apache / apache/echarts

map polygon not support hole,Map rendering does not reflect the existence of holes

Open
#10,094 3 comments 0 reactions 0 assignees View on GitHub
en priority: high
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### What problem does this feature solve?
data(geojson) contains holes.
It is hoped that the polygon can be hollowed out.

render result

![2019-03-13_124623](https://user-images.githubusercontent.com/25998927/54254301-36e28c00-458e-11e9-8432-ef868180a0c9.png)

expected result

![2019-03-13_124544](https://user-images.githubusercontent.com/25998927/54254380-75784680-458e-11e9-88ef-b65434c4095c.png)

example https://codepen.io/deyihu/pen/JzOmPw

### What does the proposed API look like?

```js
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": [
[
....
],
[
.... hole
],
...holes
]
},
"properties": {
"name": "未命名",
"center": [
120.56578933022251,
31.291266809854267
]
}
}
]
}

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.