Doing this work in viewDidAppear meant that it happened every time the modal debug settings view disappeared (and the map view reappeared).
Doing this work in viewDidAppear meant that it happened every time the modal debug settings view disappeared (and the map view reappeared).