Wait, so we get the state from the URL, modify the map and the UI, and then set the URL from the state?
Why do we need the `History.replaceState(state, '', getUrlFromCurrentState());`?