aboutsummaryrefslogtreecommitdiff
path: root/web/app/DeviceImages.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/DeviceImages.js')
-rw-r--r--web/app/DeviceImages.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/web/app/DeviceImages.js b/web/app/DeviceImages.js
index d781b529..87f2ca87 100644
--- a/web/app/DeviceImages.js
+++ b/web/app/DeviceImages.js
@@ -48,14 +48,14 @@ Ext.define('Traccar.DeviceImages', {
svg.getElementById(device.get('rotateId')).setAttribute('transform', rotateTransform);
// Adjust size and prepare scale transformation
- width *= device.get('scale');
- height *= device.get('scale');
+ width *= Traccar.Style.mapScaleNormal;
+ height *= Traccar.Style.mapScaleNormal;
if (zoom) {
width *= Traccar.Style.mapScaleSelected;
height *= Traccar.Style.mapScaleSelected;
- scaleTransform = 'scale(' + device.get('scale') * Traccar.Style.mapScaleSelected + ') ';
+ scaleTransform = 'scale(' + Traccar.Style.mapScaleSelected + ') ';
} else {
- scaleTransform = 'scale(' + device.get('scale') + ') ';
+ scaleTransform = 'scale(' + Traccar.Style.mapScaleNormal + ') ';
}
if (device.get('scaleId') !== device.get('rotateId')) {