In echarts development process, while using the map, if you use the geo, and want to set the map text content and style, we can use the geo. Label. Normal. The formatter to customize these functions, but sometimes can appear the formatter is not effective, then modify the source code to solve the problem.
1, open every js file
2. GetFormattedLabel ‘
3. Find this location:
will be in the figure above, the source of the original line of code to comment, and then add two lines of code, to complete the
code as followsvar path = status == 'normal' ?'label.formatter' : 'label.' + status + >'.formatter'; var formatter = regionModel.get(path);