aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--web/app/view/MapController.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/web/app/view/MapController.js b/web/app/view/MapController.js
index 13d3c8bd..01cf7f46 100644
--- a/web/app/view/MapController.js
+++ b/web/app/view/MapController.js
@@ -106,6 +106,10 @@ Ext.define('Traccar.view.MapController', {
this.getDeviceColor(device), device.get('category'));
marker.changed();
}
+ if (style.getText().getText() !== device.get('name')) {
+ style.getText().setText(device.get('name'));
+ marker.changed();
+ }
}
}
},