@panoramax/web-viewer 4.4.0-develop-71ab6940 → 4.4.0-develop-c9c8c674
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/CHANGELOG.md +1 -0
- package/build/index.js +1 -1
- package/build/index.js.map +1 -1
- package/build/photoviewer.js +1 -1
- package/package.json +1 -1
- package/src/utils/SemanticsMapProtocol.js +8 -6
package/package.json
CHANGED
|
@@ -111,12 +111,14 @@ export default class SemanticsMapProtocol {
|
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
// Remove useless stuff
|
|
114
|
-
geojson.features = geojson.features
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
114
|
+
geojson.features = geojson.features
|
|
115
|
+
.filter(f => f.properties?.semantics?.length > 0 || f.properties?.annotations?.length > 0)
|
|
116
|
+
.map(f => ({
|
|
117
|
+
type: f.type,
|
|
118
|
+
geometry: f.geometry,
|
|
119
|
+
id: f.id,
|
|
120
|
+
properties: this._semanticsToBasicProps(f)
|
|
121
|
+
}));
|
|
120
122
|
}
|
|
121
123
|
|
|
122
124
|
// Transform GeoJSON into MVT
|