The following codes fail to update the map.
WinMap.PanByDegreesAndScreenDistanceAsync(180f, 200);
WinMap.RefreshAsync();
WinMap.ZoomToAsync(_scales[currentIndex + 1]);
WinMap.RefreshAsync();
In v10 you had to refresh the map in order for the display to update. Here it seems to have the opposite effect. If I remove the RefreshAsync(), it appears to work fine.
I am seeing other conflicts with code that subsequently does a RefreshAsync() particularly on different overlays. It’s basically like they cancel themselves out.
What are the rules for when to use and not to use RefreshAsync()?
Another confusing point is that I saw this code in the NavigationMap.cs of HowDoI…
await mapView.RefreshAsync(); // Cancel the ongoing rendering
The user comment says Cancel the ongoing rendering, but the help context of the command is specifically the opposite…
“Refreshes all the existing overlays and map tools”
So what does it actually do???