Fix style TypeScript errors
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user