I'm trying to clip a layer by vector in OpenLayers 5. I've found this answer that kind of works, but it does not solve my specific problem, namely bandwidth.
I'm combining WMTS services from two different countries, and would like to block one service from serving tiles over the other country's area, since that just wastes bandwidth. The countries are Norway and Sweden, so simple bounds won't help me (the border goes on the diagonal of any bounding box).