I have a feature with a polygon and a text attribute. The text attribute is displayed via a text-style above the polygons center. Nothing special and so far so good.

**The current behavior:**  

I can move the map so that a part of the polygon is still visible while the label is outside of the viewport (because the label stays at the center of the polygon).

**The wanted behavior:**  

I can move the map so that a part of the polygon is still visible and the label **stays inside the viewport** (so it changes its position) until the polygon is fully outside of the viewport and not visible any more.

Is it possible to create such behavior?