this has been happening to me randomly for years: the "distance" box appears with my cursor and will not go away. Some sort of bug but it happens often enough that it is annoying. If I click around in the View Map, section to plan for instance it usually goes away.
Dave Brach/architect AC28 Macbook M4 Pro OS Sequoia