As discussed, this change destroys the map and prevents it from being displayed after a refresh.