aboutsummaryrefslogtreecommitdiff
path: root/web/app/store
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-11-09 14:32:43 +0500
committerAbyss777 <abyss@fox5.ru>2016-11-09 14:32:43 +0500
commit26ecb43bc27087ae1f7aac8a8b0ffa8421b846d9 (patch)
treeeade1dba9bbda5e1d24958211ac91c9d391bb7cb /web/app/store
parent03c7abe38d7d4852e80630d9f3f2124387f65d2c (diff)
downloadtrackermap-web-26ecb43bc27087ae1f7aac8a8b0ffa8421b846d9.tar.gz
trackermap-web-26ecb43bc27087ae1f7aac8a8b0ffa8421b846d9.tar.bz2
trackermap-web-26ecb43bc27087ae1f7aac8a8b0ffa8421b846d9.zip
- Add other icons
- Add Category combobox
Diffstat (limited to 'web/app/store')
-rw-r--r--web/app/store/DeviceImages.js56
1 files changed, 43 insertions, 13 deletions
diff --git a/web/app/store/DeviceImages.js b/web/app/store/DeviceImages.js
index ba91575a..64a78556 100644
--- a/web/app/store/DeviceImages.js
+++ b/web/app/store/DeviceImages.js
@@ -21,43 +21,73 @@ Ext.define('Traccar.store.DeviceImages', {
data: [{
key: 'route',
- name: Strings.categoryDefault,
+ name: Strings.categoryRoute,
svg: document.getElementById('routeSvg').contentDocument,
fillId: 'arrow',
rotateId: 'arrow',
- scaleId: 'arrow',
- scale: 1
+ scaleId: 'arrow'
}, {
key: 'default',
name: Strings.categoryDefault,
svg: document.getElementById('defaultSvg').contentDocument,
- fillId: ['arrow', 'path4148'],
- rotateId: 'layer2',
- scaleId: 'layer2',
- scale: 1
+ fillId: ['path4148', 'path4149'],
+ rotateId: 'path4148',
+ scaleId: 'layer2'
}, {
key: 'car',
name: Strings.categoryCar,
svg: document.getElementById('carSvg').contentDocument,
fillId: ['path4148', 'path4157'],
rotateId: 'path4148',
- scaleId: 'layer2',
- scale: 1
+ scaleId: 'layer2'
}, {
key: 'bus',
name: Strings.categoryBus,
svg: document.getElementById('busSvg').contentDocument,
fillId: ['path4148', 'path4200'],
rotateId: 'path4148',
- scaleId: 'layer2',
- scale: 1
+ scaleId: 'layer2'
}, {
key: 'truck',
name: Strings.categoryTruck,
svg: document.getElementById('truckSvg').contentDocument,
fillId: ['path4148', 'path4336'],
rotateId: 'path4148',
- scaleId: 'layer2',
- scale: 1
+ scaleId: 'layer2'
+ }, {
+ key: 'ship',
+ name: Strings.categoryShip,
+ svg: document.getElementById('shipSvg').contentDocument,
+ fillId: ['path4148', 'path4177'],
+ rotateId: 'path4148',
+ scaleId: 'layer2'
+ }, {
+ key: 'plane',
+ name: Strings.categoryPlane,
+ svg: document.getElementById('planeSvg').contentDocument,
+ fillId: ['path4148', 'path4203'],
+ rotateId: 'path4148',
+ scaleId: 'layer2'
+ }, {
+ key: 'motorcycle',
+ name: Strings.categoryMotorcycle,
+ svg: document.getElementById('motorcycleSvg').contentDocument,
+ fillId: ['path4148', 'path4256'],
+ rotateId: 'path4148',
+ scaleId: 'layer2'
+ }, {
+ key: 'bicycle',
+ name: Strings.categoryBicycle,
+ svg: document.getElementById('bicycleSvg').contentDocument,
+ fillId: ['path4148', 'path4282'],
+ rotateId: 'path4148',
+ scaleId: 'layer2'
+ }, {
+ key: 'person',
+ name: Strings.categoryPerson,
+ svg: document.getElementById('personSvg').contentDocument,
+ fillId: ['path4148', 'path4308'],
+ rotateId: 'path4148',
+ scaleId: 'layer2'
}]
}); \ No newline at end of file