@panoramax/web-viewer 4.4.0-develop-dab30a1d → 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 +5 -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/components/ui/Map.js +2 -2
- package/src/utils/SemanticsMapProtocol.js +8 -6
package/package.json
CHANGED
package/src/components/ui/Map.js
CHANGED
|
@@ -150,7 +150,7 @@ export default class Map extends maplibregl.Map {
|
|
|
150
150
|
if(e.defaultPrevented === false) {
|
|
151
151
|
this._dropPreview();
|
|
152
152
|
if(this._parent.isMapWide?.()) {
|
|
153
|
-
this._gridFocus = setTimeout(() => this._parent?.grid?.toggleAway(),
|
|
153
|
+
this._gridFocus = setTimeout(() => this._parent?.grid?.toggleAway(), 100);
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
});
|
|
@@ -159,7 +159,7 @@ export default class Map extends maplibregl.Map {
|
|
|
159
159
|
const untoggleGridWidgets = () => {
|
|
160
160
|
if(this._parent.isMapWide?.() && this._parent?.grid?._hidden) {
|
|
161
161
|
clearTimeout(this._gridFocus);
|
|
162
|
-
this._parent
|
|
162
|
+
this._gridFocus = setTimeout(() => this._parent?.grid?.toggleAway(true), 100);
|
|
163
163
|
}
|
|
164
164
|
};
|
|
165
165
|
this.on("mousemove", untoggleGridWidgets);
|
|
@@ -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
|