@smarterplan/ngx-smarterplan-core 0.4.2 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/services/matterport.service.mjs +9 -10
- package/esm2020/lib/services/tag.service.mjs +5 -3
- package/fesm2015/smarterplan-ngx-smarterplan-core.mjs +11 -10
- package/fesm2015/smarterplan-ngx-smarterplan-core.mjs.map +1 -1
- package/fesm2020/smarterplan-ngx-smarterplan-core.mjs +11 -10
- package/fesm2020/smarterplan-ngx-smarterplan-core.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -927,14 +927,13 @@ class MatterportService {
|
|
|
927
927
|
if (poi && poi.tagIcon) {
|
|
928
928
|
const tagIcon = JSON.parse(poi.tagIcon);
|
|
929
929
|
// TODO for indicators
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
// }
|
|
930
|
+
if (mattertagData.getType() === PoiType.DATA) {
|
|
931
|
+
const feature = mattertagData.getObject();
|
|
932
|
+
if (feature.type === FeatureType.INDICATOR_TEMP) {
|
|
933
|
+
tagIcon.src = this.tagService.getIconTagImageForFeature(feature, poi);
|
|
934
|
+
poi.tagIcon = tagIcon;
|
|
935
|
+
}
|
|
936
|
+
}
|
|
938
937
|
if (tagIcon.src) {
|
|
939
938
|
const pathSigned = await this.tagService.getSignedTagIconSource(tagIcon.src);
|
|
940
939
|
if (pathSigned) {
|
|
@@ -7889,8 +7888,10 @@ class BaseTagService {
|
|
|
7889
7888
|
throw new Error(`getSignedTagIconSource is not implemented in the base class.`);
|
|
7890
7889
|
}
|
|
7891
7890
|
getIconTagImageForFeature(feature, poi) {
|
|
7892
|
-
const tagIcon = JSON.parse(poi.tagIcon);
|
|
7893
|
-
return tagIcon.src;
|
|
7891
|
+
// const tagIcon = JSON.parse(poi.tagIcon);
|
|
7892
|
+
// return tagIcon.src;
|
|
7893
|
+
throw new Error(`getIconTagImageForFeature is not implemented in the base class.
|
|
7894
|
+
Please override this method in your extended class.`);
|
|
7894
7895
|
}
|
|
7895
7896
|
getScriptForTag(object, tagType) {
|
|
7896
7897
|
throw new Error(`getScriptForTag is not implemented in the base class.
|