Create "cutout" map using OSM relation

Hello community,

I would like to create a “cutout” map of a county.
The county exists as a openstreetmap relation.

By cutout I mean, I would like to create one of the following:

  • a map of the county, that is “cut out” at the county border, so nothing else but the county is visible
  • a map where anything outside the county has a grey overlay

I tried using umap and overpass, but didn’t succed. I can show the relation in overpass, but I don’t know how to colour/cut areas based on being inside or outside the relation.

Thanks!
th