diff options
author | Abyss777 <abyss@fox5.ru> | 2016-08-25 17:32:52 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-08-25 17:32:52 +0500 |
commit | 557c4214ae6ea8663f3f85cfa5652411aaa1ea09 (patch) | |
tree | 2e19ed74cd98fab8162d8d4c2b46f07bcab37e77 /web | |
parent | 3cb5cca4b8db07fa477b23c711916307ff7db427 (diff) | |
download | trackermap-server-557c4214ae6ea8663f3f85cfa5652411aaa1ea09.tar.gz trackermap-server-557c4214ae6ea8663f3f85cfa5652411aaa1ea09.tar.bz2 trackermap-server-557c4214ae6ea8663f3f85cfa5652411aaa1ea09.zip |
Removed array duplication
Diffstat (limited to 'web')
-rw-r--r-- | web/app/Style.js | 8 | ||||
-rw-r--r-- | web/app/view/MapController.js | 2 |
2 files changed, 1 insertions, 9 deletions
diff --git a/web/app/Style.js b/web/app/Style.js index 8d1cf3c0e..2d6bfa5c3 100644 --- a/web/app/Style.js +++ b/web/app/Style.js @@ -60,14 +60,6 @@ Ext.define('Traccar.Style', { mapColorOnline: 'rgba(77, 250, 144, 1.0)', mapColorUnknown: 'rgba(250, 190, 77, 1.0)', mapColorOffline: 'rgba(255, 84, 104, 1.0)', - mapColorReport: [ - 'rgba(21, 127, 204, 1.0)', - 'rgba(109, 46, 204, 1.0)', - 'rgba(204, 46, 162, 1.0)', - 'rgba(204, 46, 38, 1.0)', - 'rgba(128, 204, 46, 1.0)', - 'rgba(46, 204, 155, 1.0)' - ], mapColorOverlay: 'rgba(21, 127, 204, 0.2)', mapRadiusNormal: 9, diff --git a/web/app/view/MapController.js b/web/app/view/MapController.js index 57278ce07..bc6a5d404 100644 --- a/web/app/view/MapController.js +++ b/web/app/view/MapController.js @@ -255,7 +255,7 @@ Ext.define('Traccar.view.MapController', { index = deviceId % Traccar.Style.mapRouteColor.length; } return this.getMarkerStyle( - Traccar.Style.mapRadiusNormal, Traccar.Style.mapColorReport[index]); + Traccar.Style.mapRadiusNormal, Traccar.Style.mapRouteColor[index]); }, resizeMarker: function (style, radius) { |