How to dismiss a map view in SwiftUI?

I am writing a little iOS app using SwiftUI. It has a map and a button which I want to use to dismiss the map.

I first read this tutorial: Advanced MKMapView with SwiftUI; to know how to handle MKMapView in SwiftUI, and it is now working.

Then I read How to make a view dismiss itself in order to know how to make use of the button.

But I do not see how to apply the technic presented in the last tutorial to the MapView of the first one. Precisely I don't know where to touch in the code of MapView.

Has anyone experimented in this area and could give me some hints?