diff options
author | Abyss777 <abyss@fox5.ru> | 2016-11-09 14:32:43 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-11-09 14:32:43 +0500 |
commit | 26ecb43bc27087ae1f7aac8a8b0ffa8421b846d9 (patch) | |
tree | eade1dba9bbda5e1d24958211ac91c9d391bb7cb /web/app/DeviceImages.js | |
parent | 03c7abe38d7d4852e80630d9f3f2124387f65d2c (diff) | |
download | trackermap-web-26ecb43bc27087ae1f7aac8a8b0ffa8421b846d9.tar.gz trackermap-web-26ecb43bc27087ae1f7aac8a8b0ffa8421b846d9.tar.bz2 trackermap-web-26ecb43bc27087ae1f7aac8a8b0ffa8421b846d9.zip |
- Add other icons
- Add Category combobox
Diffstat (limited to 'web/app/DeviceImages.js')
-rw-r--r-- | web/app/DeviceImages.js | 8 |
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')) { |