map-ol-utils 0.0.54 → 0.0.56

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/dist/index.cjs CHANGED
@@ -715,6 +715,7 @@ var createMapWorldLayer = (layerName, tk = "c77eddc667c5bed016fded560baf93e7") =
715
715
  2682209014892578e-21
716
716
  ]
717
717
  }),
718
+ tilePixelRatio: window.devicePixelRatio || 1,
718
719
  url: `https://t{0-7}.tianditu.gov.cn/${layerName}/wmts?tk=${tk}`
719
720
  }),
720
721
  properties: {
@@ -766,7 +767,9 @@ var createMapInstance = (config = {}) => {
766
767
  attribution: false
767
768
  }),
768
769
  interactions: (0, import_interaction2.defaults)({
769
- doubleClickZoom: false
770
+ pinchRotate: false,
771
+ doubleClickZoom: false,
772
+ altShiftDragRotate: false
770
773
  }),
771
774
  layers: innerConfig.layers || [createBaseLayer()]
772
775
  });
package/dist/index.js CHANGED
@@ -655,6 +655,7 @@ var createMapWorldLayer = (layerName, tk = "c77eddc667c5bed016fded560baf93e7") =
655
655
  2682209014892578e-21
656
656
  ]
657
657
  }),
658
+ tilePixelRatio: window.devicePixelRatio || 1,
658
659
  url: `https://t{0-7}.tianditu.gov.cn/${layerName}/wmts?tk=${tk}`
659
660
  }),
660
661
  properties: {
@@ -706,7 +707,9 @@ var createMapInstance = (config = {}) => {
706
707
  attribution: false
707
708
  }),
708
709
  interactions: interactionDefaults({
709
- doubleClickZoom: false
710
+ pinchRotate: false,
711
+ doubleClickZoom: false,
712
+ altShiftDragRotate: false
710
713
  }),
711
714
  layers: innerConfig.layers || [createBaseLayer()]
712
715
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "map-ol-utils",
3
- "version": "0.0.54",
3
+ "version": "0.0.56",
4
4
  "type": "module",
5
5
  "description": "Openlayers utils library",
6
6
  "files": [