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
Updated or-map-marker-asset to respect assetTypeAsIcon flag
Rich Turner4a31a92f5e97
diff --git a/ui/component/or-map/src/markers/or-map-marker-asset.ts b/ui/component/or-map/src/markers/or-map-marker-asset.tsindex d02db9984..873756534 100644--- a/ui/component/or-map/src/markers/or-map-marker-asset.ts+++ b/ui/component/or-map/src/markers/or-map-marker-asset.ts@@ -23,9 +23,11 @@ export class OrMapMarkerAsset extends subscribe(openremote)(OrMapMarker) {return;}- const descriptor = AssetModelUtil.getAssetDescriptor(type);- const icon = descriptor ? descriptor.icon : AssetType.THING.icon;- this.icon = icon;+ if (this.assetTypeAsIcon) {+ const descriptor = AssetModelUtil.getAssetDescriptor(type);+ const icon = descriptor ? descriptor.icon : AssetType.THING.icon;+ this.icon = icon;+ }this.visible = true;}