@amosbatto @dos It turned out that a newer version of GNOME Maps installed via flatpak works much better, and then this rebuilding with -O0 is not needed.
Here is how I installed it:
sudo apt install flatpak
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
sudo flatpak install flathub org.gnome.Maps
The above installed GNOME Maps version 3.38.1 which can then be started like this:
flatpak run org.gnome.Maps
(The “gnome-maps” command still gives the old version which was 3.30.3.)
Here is a new video showing the new flatpak-installed version 3.38.1: