mirror of
https://github.com/traccar/traccar.git
synced 2026-02-05 05:03:44 -05:00
Remove time label from report markers
This commit is contained in:
@@ -32,8 +32,6 @@ Ext.define('Traccar.Style', {
|
||||
reportHeight: 250,
|
||||
reportTime: 100,
|
||||
|
||||
mapClusterDistance: 30,
|
||||
|
||||
mapDefaultLat: 51.507222,
|
||||
mapDefaultLon: -0.1275,
|
||||
mapDefaultZoom: 6,
|
||||
@@ -55,8 +53,8 @@ Ext.define('Traccar.Style', {
|
||||
mapColorOffline: 'rgba(255, 84, 104, 1.0)',
|
||||
mapColorReport: 'rgba(21, 127, 204, 1.0)',
|
||||
|
||||
mapRadiusNormal: 10,
|
||||
mapRadiusSelected: 15,
|
||||
mapRadiusNormal: 9,
|
||||
mapRadiusSelected: 14,
|
||||
|
||||
mapMaxZoom: 19,
|
||||
mapDelay: 500
|
||||
|
||||
@@ -98,15 +98,7 @@ Ext.define('Traccar.view.Map', {
|
||||
|
||||
this.reportSource = new ol.source.Vector({});
|
||||
reportLayer = new ol.layer.Vector({
|
||||
source: new ol.source.Cluster({
|
||||
distance: Traccar.Style.mapClusterDistance,
|
||||
source: this.reportSource
|
||||
}),
|
||||
style: function (feature, resolution) {
|
||||
if (feature.get('features').length == 1) {
|
||||
return [feature.get('features')[0].getStyle()];
|
||||
}
|
||||
}
|
||||
source: this.reportSource
|
||||
});
|
||||
|
||||
lat = user.get('latitude') || server.get('latitude') || Traccar.Style.mapDefaultLat;
|
||||
|
||||
@@ -159,8 +159,8 @@ Ext.define('Traccar.view.MapController', {
|
||||
|
||||
style = this.getReportMarker();
|
||||
style.getImage().setRotation(position.get('course') * Math.PI / 180);
|
||||
style.getText().setText(
|
||||
Ext.Date.format(position.get('fixTime'), Traccar.Style.dateTimeFormat));
|
||||
/*style.getText().setText(
|
||||
Ext.Date.format(position.get('fixTime'), Traccar.Style.dateTimeFormat));*/
|
||||
|
||||
marker.setStyle(style);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user