100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps
Java asset-managementbuildingdashboarddataplatformdevice-managementedge-computingenergyenergy-managementenergy-monitorfleet-managementfleet-telematicsiotiot-applicationiot-platformmodbusmqttmqtt-brokerota-updaterules-enginesmartcity
Always refresh map view when starting the activity
Christian Bauerc6a4949ddbb2
diff --git a/manager/client/src/main/java/org/openremote/manager/client/map/MapActivity.java b/manager/client/src/main/java/org/openremote/manager/client/map/MapActivity.javaindex 84c4079c0..95da7903e 100644--- a/manager/client/src/main/java/org/openremote/manager/client/map/MapActivity.java+++ b/manager/client/src/main/java/org/openremote/manager/client/map/MapActivity.java@@ -33,11 +33,14 @@ import org.openremote.manager.shared.map.MapResource;import javax.inject.Inject;import java.util.Collection;+import java.util.logging.Logger;import static org.openremote.manager.client.http.RequestExceptionHandler.handleRequestException;public class MapActivity extends AppActivity<MapPlace> implements MapView.Presenter {+ private static final Logger LOG = Logger.getLogger(MapActivity.class.getName());+final MapView view;final MapResource mapResource;final ManagerMessages managerMessages;@@ -77,8 +80,10 @@ public class MapActivity extends AppActivity<MapPlace> implements MapView.Presenregistrations.add(eventBus.register(GoToPlaceEvent.class, event -> view.refresh()));- if (view.isMapInitialised())+ if (view.isMapInitialised()) {+ view.refresh();return;+ }requestService.execute(jsonObjectMapper,