In
we save the label properties when the label has layout options so we can restore them later. It's not so robust because we can't make sure what we saved is right. In the case like zooming/panning maps. Each operation will trigger
label save and cause original properties can't be restored. Currently, we workaround by force reset necessary properties in
|
label.ignore = mapLabelRaw(label).ignore; |
Perhaps it's better we can clone a new label and save the original label to avoid the LabelManager modify the original attributes.
In
echarts/src/label/LabelManager.ts
Line 253 in d8d0ea6
label saveand cause original properties can't be restored. Currently, we workaround by force reset necessary properties inecharts/src/component/helper/MapDraw.ts
Line 542 in d8d0ea6
Perhaps it's better we can clone a new label and save the original label to avoid the LabelManager modify the original attributes.