Juan Antonio shows a neat simple example on how you could design your app. It might be all you need Franck. You might like to experiment with other ways.
I discovered it is possible to create a 'dynamic' polygon. Use the FeatureCollection FeaturesFromGeoJSON block, setting it to a geojson. I just dragged and dropped the geojson into a Text block. You can use several methods to populate the FeatureCollection. Drag and drop is simple. The Polygons created with the FeatureCollection cannot be hidden once created. Design time Polygons can be visible or hidden.

The FeatureCollection.Visible = false has a bug and will not hide these FeatureCollection polygons.

I tried setting the FC to an 'empty' geojson;
{
"type": "FeatureCollection",
"features": []
}
as a work around to try to erase the FeatureCollection. Setting to an empty geojson adds to the existing FeatureCollection geojson. It does
not 'erase' the existing FeatureCollection.
An app to play with
The attached aia creates a Polygon playground for experimentation. Polygon1 and Polygon2 are two default design time polygons. The two elaborate polygons are created using the online
geojson.io to create geojson files using the Fuschia circled tool. Create the polygon, then copy the generated geojson script to the right into your app.

Button 6 (Other) contains various disabled strategies I experimented with to try to 'erase' an existing FeatureCollection image on the Map. None of them worked for me.

The app Buttons
Original Coordinates places a design time polygon, Polygon1
Modified Coordinates changes the 'Original'polygon boundaries
Hide/Show hides and shows Polygon1 and Polygon2.
Color toggles Polygon2 color
FC spawns a red polygon using a geojson script in a FeatureCollection call.
FC2 spawns a red star polygon as FC the same way.
Click on the star polygon or the red other large red polygon in the Map; the runtime component name appears in Label1. However,
that run time component name sadly does not work in the FeatureCollection any component Block component puzzle piece (another bug??)
Experiment
Go play with this stuff. Something here might help you build your app.
Anyone have any ideas about how to hide the FeatureCollection?
Regards,
Steve