From 6ca3cc23a271976769ab0c9121b095b98297f11d Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Wed, 16 Nov 2016 09:22:37 +0500 Subject: Fix update marker label on device name change --- web/app/view/MapController.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'web') 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(); + } } } }, -- cgit v1.2.3