diff options
author | Abyss777 <abyss@fox5.ru> | 2016-11-26 14:21:48 +0700 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-11-26 14:21:48 +0700 |
commit | 020a2409a58e73e988a108e314006f45b436b572 (patch) | |
tree | c5b5f5a2734a5689aa1502aa84f6791762efbd74 /web/app/DeviceImages.js | |
parent | 70fac91c8a3386fda51b9c889bfbd27c66cf605a (diff) | |
download | trackermap-web-020a2409a58e73e988a108e314006f45b436b572.tar.gz trackermap-web-020a2409a58e73e988a108e314006f45b436b572.tar.bz2 trackermap-web-020a2409a58e73e988a108e314006f45b436b572.zip |
Totally update device marker instead of updating only image src
Diffstat (limited to 'web/app/DeviceImages.js')
-rw-r--r-- | web/app/DeviceImages.js | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/web/app/DeviceImages.js b/web/app/DeviceImages.js index a05a8153..b31f3ed3 100644 --- a/web/app/DeviceImages.js +++ b/web/app/DeviceImages.js @@ -98,15 +98,8 @@ Ext.define('Traccar.DeviceImages', { }, rotateImageIcon: function (image, angle) { - var svg = Traccar.DeviceImages.getImageSvg(image.fill, image.zoom, angle, image.category); + var svg = this.getImageSvg(image.fill, image.zoom, angle, image.category); image.getImage().src = this.formatSrc(svg); image.angle = angle; - }, - - changeImageColor: function (image, color, category) { - var svg = Traccar.DeviceImages.getImageSvg(color, image.zoom, image.angle, category); - image.getImage().src = this.formatSrc(svg); - image.fill = color; - image.category = category; } }); |