aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/MapController.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/view/MapController.js')
-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 13d3c8b..01cf7f4 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();
+ }
}
}
},