Fix style TypeScript errors

This commit is contained in:
Kevin Schmidt
2018-09-14 15:57:21 -06:00
parent 7912c5d711
commit 124fccf127
8 changed files with 30 additions and 12 deletions

View File

@@ -51,6 +51,20 @@ class ImageStyle {
}
/**
* Clones the style.
* @return {ImageStyle} The cloned style.
* @api
*/
clone() {
return new ImageStyle({
opacity: this.getOpacity(),
scale: this.getScale(),
rotation: this.getRotation(),
rotateWithView: this.getRotateWithView()
});
}
/**
* Get the symbolizer opacity.
* @return {number} Opacity.