@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panoramax/web-viewer",
3
- "version": "4.4.0-develop-dab30a1d",
3
+ "version": "4.4.0-develop-c9c8c674",
4
4
  "description": "Panoramax web viewer for geolocated pictures",
5
5
  "main": "build/index.js",
6
6
  "author": "Panoramax team",
@@ -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(), 250);
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.grid.toggleAway(true);
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.map(f => ({
115
- type: f.type,
116
- geometry: f.geometry,
117
- id: f.id,
118
- properties: this._semanticsToBasicProps(f)
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