diff options
author | Abyss777 <abyss@fox5.ru> | 2016-11-08 10:03:18 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-11-08 10:03:18 +0500 |
commit | 97fd53f33b92e334e6094edb340ea551a44d136e (patch) | |
tree | ea1601e074b351be8b569debbf531a5374e3abd9 /web/app/store/DeviceImages.js | |
parent | 450f4a3a2423c90985603103b10e61a195d0f74f (diff) | |
download | trackermap-web-97fd53f33b92e334e6094edb340ea551a44d136e.tar.gz trackermap-web-97fd53f33b92e334e6094edb340ea551a44d136e.tar.bz2 trackermap-web-97fd53f33b92e334e6094edb340ea551a44d136e.zip |
- Move arrow to file
- Change stroke width
- Fix label offset
Diffstat (limited to 'web/app/store/DeviceImages.js')
-rw-r--r-- | web/app/store/DeviceImages.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/web/app/store/DeviceImages.js b/web/app/store/DeviceImages.js index 968f90c4..57745f1c 100644 --- a/web/app/store/DeviceImages.js +++ b/web/app/store/DeviceImages.js @@ -22,10 +22,7 @@ Ext.define('Traccar.store.DeviceImages', { data: [{ key: 'default', name: Strings.categoryDefault, - svg: (new DOMParser()) - .parseFromString('<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="26" height="26">' - + '<polygon id="arrow" points="13,4 19,22 13,19 7,22" ' - + 'style="fill:#008000;stroke:#000000;stroke-width:2px;" transform="" /></svg>', "image/svg+xml"), + url: 'images/arrow.svg', rotateId: 'arrow', fillId: 'arrow', scale: 1 @@ -60,7 +57,7 @@ Ext.define('Traccar.store.DeviceImages', { url: device.url, scope: device, success: function (response) { - this.svg = (new DOMParser()).parseFromString(response.responseText, "image/svg+xml"); + this.svg = new DOMParser().parseFromString(response.responseText, "image/svg+xml"); } }); } |