|
@@ -13,6 +13,7 @@ export default class Img extends Geometry {
|
|
|
this.center = null;
|
|
|
this.imageData = null;
|
|
|
this.bounding = null;
|
|
|
+ this.scale = 1;
|
|
|
this.geoType = VectorType.Img;
|
|
|
this.setId(vectorId);
|
|
|
this.setSrc(src);
|
|
@@ -59,5 +60,6 @@ export default class Img extends Geometry {
|
|
|
x: this.center.x - width / 2,
|
|
|
y: this.center.y - height / 2,
|
|
|
};
|
|
|
+ this.scale = coordinate.width / width;
|
|
|
}
|
|
|
}
|