@panoramax/web-viewer 3.2.3-develop-33cd154c → 3.2.3-develop-d0fdb647
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
|
@@ -204,6 +204,15 @@ export default class MapFilters extends LitElement {
|
|
|
204
204
|
_onParentFilterChange(e) {
|
|
205
205
|
this.minDate = e?.minDate || null;
|
|
206
206
|
this.maxDate = e?.maxDate || null;
|
|
207
|
+
|
|
208
|
+
// Sanity check for date
|
|
209
|
+
if(this.minDate && this.maxDate && this.minDate > this.maxDate) {
|
|
210
|
+
const prevMin = this.minDate;
|
|
211
|
+
this.minDate = this.maxDate;
|
|
212
|
+
this.maxDate = prevMin;
|
|
213
|
+
this._onFormChange();
|
|
214
|
+
}
|
|
215
|
+
|
|
207
216
|
this.score = e?.qualityscore?.length < 5 ? e.qualityscore.join(",") : "";
|
|
208
217
|
|
|
209
218
|
if(e?.pic_type && e.pic_type != "") {
|
|
@@ -188,9 +188,9 @@ export default class ShareMenu extends LitElement {
|
|
|
188
188
|
<pnx-copy-button ._t=${this._parent?._t} text=${shareUrl}>
|
|
189
189
|
${fa(faCopy)} ${this._parent?._t.pnx.share_page}
|
|
190
190
|
</pnx-copy-button>
|
|
191
|
-
|
|
191
|
+
${this._parent.isWidthSmall() ? nothing : html`<pnx-button @click=${window.print.bind(window)}>
|
|
192
192
|
${fa(faPrint)} ${this._parent?._t.pnx.share_print}
|
|
193
|
-
</pnx-button
|
|
193
|
+
</pnx-button>`}
|
|
194
194
|
</div>
|
|
195
195
|
|
|
196
196
|
<h4>
|
package/src/components/ui/Map.js
CHANGED
|
@@ -71,7 +71,9 @@ export default class Map extends maplibregl.Map {
|
|
|
71
71
|
touchZoomRotate: true,
|
|
72
72
|
touchPitch: false,
|
|
73
73
|
doubleClickZoom: false,
|
|
74
|
-
|
|
74
|
+
canvasContextAttributes: {
|
|
75
|
+
preserveDrawingBuffer: !parent.isWidthSmall(),
|
|
76
|
+
},
|
|
75
77
|
transformRequest: parent.api._getMapRequestTransform(),
|
|
76
78
|
locale: parent._t.maplibre,
|
|
77
79
|
hash: false,
|