@panoramax/web-viewer 3.2.1-develop-e904bbd4 → 3.2.1-develop-4458bd99

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": "3.2.1-develop-e904bbd4",
3
+ "version": "3.2.1-develop-4458bd99",
4
4
  "description": "Panoramax web viewer for geolocated pictures",
5
5
  "main": "build/index.js",
6
6
  "author": "Panoramax team",
@@ -57,6 +57,8 @@ export default class Map extends maplibregl.Map {
57
57
  attributionControl: false,
58
58
  dragRotate: false,
59
59
  pitchWithRotate: false,
60
+ touchZoomRotate: true,
61
+ touchPitch: false,
60
62
  preserveDrawingBuffer: !parent.isWidthSmall(),
61
63
  transformRequest: parent._api._getMapRequestTransform(),
62
64
  locale: parent._t.maplibre,
@@ -68,6 +70,11 @@ export default class Map extends maplibregl.Map {
68
70
  this._options = options;
69
71
  this.getContainer().classList.add("gvs-map");
70
72
 
73
+ // Disable touch rotate
74
+ if(options.touchZoomRotate === undefined) {
75
+ this?.touchZoomRotate?.disableRotation();
76
+ }
77
+
71
78
  // Handle raster source
72
79
  if(this._options.raster) {
73
80
  this._options.background = this._options.background || "streets";