I would like to add a mask to clip layers (Tile) below in a way that only the part bounded by a ol.Feature (polygon or multipolygon) is visible and the rest is hidden (left white). The polygon is stored in a DB so I need a way to do that programatically.
Does anybody have some clues or examples to achieve this?
- ol.layer.Vector filled with white outside of the features
Ideally: - add / remove vector features and interactions should update the mask - swichting layer below the mask is possible
I'm not looking for a working code but more inspirations and ideas to start doing that in a "ol3" way.