Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

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.ts
index 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;
}