From 04e63f9b42991008843f3f9d1788fa6933bd57b3 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 3 Oct 2015 21:21:26 +1300 Subject: Change global styles class --- web/app/view/MapController.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'web/app/view/MapController.js') diff --git a/web/app/view/MapController.js b/web/app/view/MapController.js index 7ce61e794..7bb878241 100644 --- a/web/app/view/MapController.js +++ b/web/app/view/MapController.js @@ -68,7 +68,7 @@ if (data[i].deviceId in this.liveData) { this.liveData[data[i].deviceId].setGeometry(geometry); } else { - var style = this.getMarkerStyle(styles.mapLiveRadius, styles.mapLiveColor); + var style = this.getMarkerStyle(Traccar.Style.mapLiveRadius, Traccar.Style.mapLiveColor); var marker = new ol.Feature({ geometry: geometry, originalStyle: style @@ -90,8 +90,8 @@ getLineStyle: function () { return new ol.style.Style({ stroke: new ol.style.Stroke({ - color: styles.mapStrokeColor, - width: styles.mapRouteWidth + color: Traccar.Style.mapStrokeColor, + width: Traccar.Style.mapRouteWidth }) }); }, @@ -118,8 +118,8 @@ color: color }), stroke: new ol.style.Stroke({ - color: styles.mapStrokeColor, - width: styles.mapMarkerStroke + color: Traccar.Style.mapStrokeColor, + width: Traccar.Style.mapMarkerStroke }) }) }); @@ -143,7 +143,7 @@ ]); positions.push(point); - var style = this.getMarkerStyle(styles.mapReportRadius, styles.mapReportColor); + var style = this.getMarkerStyle(Traccar.Style.mapReportRadius, Traccar.Style.mapReportColor); var feature = new ol.Feature({ geometry: new ol.geom.Point(positions[index]), originalStyle: style @@ -189,10 +189,10 @@ } if (feature !== undefined) { - feature.setStyle(this.getMarkerStyle(styles.mapSelectRadius, styles.mapSelectColor)); + feature.setStyle(this.getMarkerStyle(Traccar.Style.mapSelectRadius, Traccar.Style.mapSelectColor)); var pan = ol.animation.pan({ - duration: styles.mapDelay, + duration: Traccar.Style.mapDelay, source: this.getView().mapView.getCenter() }); this.getView().map.beforeRender(pan); -- cgit v1.2.3