pissang edited a comment on pull request #13141: URL: https://github.com/apache/incubator-echarts/pull/13141#issuecomment-678902145
What we want is to put the labelLine on top of the polygon on the map. So we only need to make sure it has larger `z2` than the polygon. Check the code in https://github.com/apache/incubator-echarts/blob/next/src/echarts.ts#L2095 About the difference of `z2`, `z`, `zlevel` + `zlevel` and `z` can be configured by the developers on the whole component/series. In which `zlevel` will create a new canvas. + `z2` is not exposed to the developers. It is used to specify the draw order of elements inside the components. For example `label` always has larger `z2` to be drawn on top of other elements in the components. Also, we should always take it carefully when exposing more low-level concepts to options. If we expose z and zLevel on the `labelLine`. It means we also need to make it configurable in `label` or other elements. It will make it complex and hard for us to make changes in the further. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
