Commit 94bc1c2
committed
1.Hover overlay origin
The overlay comes from the default ECharts tooltip. In this PR it’s made explicit and more predictable (confined to viewport, no hide delay).
2.Disabling map labels
Now they can be disabled completely if showMapLabelsAtZoom is set to false.
showLabelsAtZoomLevel is still supported internally for backward compatibility.
3.Overlap between labels and hover overlays
The main cause was labels being interactive. Both graph and map labels are now marked as silent, so tooltips always have interaction priority and overlap no longer causes UX issues.
4.Default behavior and redundancy
Labels remain the default, non-invasive layer (shown only above a zoom threshold), while tooltips remain the primary interactive overlay.
5.Config naming consistency
showLabelsAtZoomLevel (map) is effectively renamed to showMapLabelsAtZoom, aligning it with showGraphLabelsAtZoom, while keeping backward compatibility.1 parent cc68e9e commit 94bc1c2
2 files changed
+20
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
170 | 171 | | |
171 | 172 | | |
172 | 173 | | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
173 | 177 | | |
174 | 178 | | |
175 | 179 | | |
| |||
332 | 336 | | |
333 | 337 | | |
334 | 338 | | |
335 | | - | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
336 | 343 | | |
337 | 344 | | |
338 | 345 | | |
| |||
538 | 545 | | |
539 | 546 | | |
540 | 547 | | |
541 | | - | |
542 | | - | |
| 548 | + | |
| 549 | + | |
543 | 550 | | |
544 | 551 | | |
545 | 552 | | |
546 | 553 | | |
547 | 554 | | |
548 | | - | |
549 | | - | |
| 555 | + | |
| 556 | + | |
550 | 557 | | |
551 | 558 | | |
552 | 559 | | |
| |||
556 | 563 | | |
557 | 564 | | |
558 | 565 | | |
| 566 | + | |
559 | 567 | | |
560 | 568 | | |
561 | 569 | | |
| |||
568 | 576 | | |
569 | 577 | | |
570 | 578 | | |
571 | | - | |
572 | | - | |
| 579 | + | |
| 580 | + | |
573 | 581 | | |
574 | 582 | | |
575 | 583 | | |
576 | 584 | | |
577 | 585 | | |
578 | | - | |
| 586 | + | |
| 587 | + | |
579 | 588 | | |
580 | 589 | | |
581 | 590 | | |
| |||
594 | 603 | | |
595 | 604 | | |
596 | 605 | | |
597 | | - | |
| 606 | + | |
598 | 607 | | |
599 | 608 | | |
600 | 609 | | |
601 | 610 | | |
602 | 611 | | |
603 | | - | |
| 612 | + | |
604 | 613 | | |
605 | 614 | | |
606 | 615 | | |
| |||
0 commit comments