aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/MapController.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-03 21:21:26 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-03 21:21:26 +1300
commit04e63f9b42991008843f3f9d1788fa6933bd57b3 (patch)
tree7e57e37dbe0e08da7cc10311b0d5f5556d151e5c /web/app/view/MapController.js
parent086faa072ddd3e16c28c2ceaceaa90f32a05f7f9 (diff)
downloadtrackermap-server-04e63f9b42991008843f3f9d1788fa6933bd57b3.tar.gz
trackermap-server-04e63f9b42991008843f3f9d1788fa6933bd57b3.tar.bz2
trackermap-server-04e63f9b42991008843f3f9d1788fa6933bd57b3.zip
Change global styles class
Diffstat (limited to 'web/app/view/MapController.js')
-rw-r--r--web/app/view/MapController.js16
1 files changed, 8 insertions, 8 deletions
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);