Add setRotateWithView function to ol/style/Text

This commit is contained in:
Frederic Junod
2019-02-19 14:12:35 +01:00
parent f0a97ee460
commit 4cb9b1eeb3
2 changed files with 19 additions and 0 deletions

View File

@@ -401,6 +401,16 @@ class Text {
this.placement_ = placement;
}
/**
* Set whether to rotate the text with the view.
*
* @param {boolean} rotateWithView Rotate with map.
* @api
*/
setRotateWithView(rotateWithView) {
this.rotateWithView_ = rotateWithView;
}
/**
* Set the fill.
*