map-ol-utils 0.0.55 → 0.0.58

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
@@ -641,14 +641,12 @@ var createBaseLayer = (isDark = true) => {
641
641
  "https://ywtg.citybrain.hangzhou.gov.cn:9456/hzsyvector_dark/{z}/{y}/{x}",
642
642
  "https://ywtg.citybrain.hangzhou.gov.cn:9457/hzsyvector_dark/{z}/{y}/{x}",
643
643
  "https://ywtg.citybrain.hangzhou.gov.cn:9458/hzsyvector_dark/{z}/{y}/{x}",
644
- "https://ywtg.citybrain.hangzhou.gov.cn:9459/hzsyvector_dark/{z}/{y}/{x}",
645
- "https://cb.hangzhoumap.gov.cn/E36CCEA93443D1495DB9B9F2B2FFE348CB1A367D75176F815040AB19E54CDCA5DAAA25813AF965E2ABD0CC2463DD1223/PBS/rest/services/hzsyvector_dark/Mapserver/tile/{z}/{y}/{x}"
644
+ "https://ywtg.citybrain.hangzhou.gov.cn:9459/hzsyvector_dark/{z}/{y}/{x}"
646
645
  ] : [
647
646
  "https://ywtg.citybrain.hangzhou.gov.cn:9456/hzsyvector/{z}/{y}/{x}",
648
647
  "https://ywtg.citybrain.hangzhou.gov.cn:9457/hzsyvector/{z}/{y}/{x}",
649
648
  "https://ywtg.citybrain.hangzhou.gov.cn:9458/hzsyvector/{z}/{y}/{x}",
650
- "https://ywtg.citybrain.hangzhou.gov.cn:9459/hzsyvector/{z}/{y}/{x}",
651
- "https://cb.hangzhoumap.gov.cn/E36CCEA93443D1495DB9B9F2B2FFE348CB1A367D75176F815040AB19E54CDCA5DAAA25813AF965E2ABD0CC2463DD1223/PBS/rest/services/hzsyvector/Mapserver/tile/{z}/{y}/{x}"
649
+ "https://ywtg.citybrain.hangzhou.gov.cn:9459/hzsyvector/{z}/{y}/{x}"
652
650
  ]
653
651
  }),
654
652
  properties: {
@@ -715,6 +713,7 @@ var createMapWorldLayer = (layerName, tk = "c77eddc667c5bed016fded560baf93e7") =
715
713
  2682209014892578e-21
716
714
  ]
717
715
  }),
716
+ tilePixelRatio: window.devicePixelRatio || 1,
718
717
  url: `https://t{0-7}.tianditu.gov.cn/${layerName}/wmts?tk=${tk}`
719
718
  }),
720
719
  properties: {
@@ -750,6 +749,7 @@ var createMapInstance = (config = {}) => {
750
749
  baseLayer: "vec-layer",
751
750
  projection: "EPSG:4326",
752
751
  layers: [createBaseLayer()],
752
+ constrainResolution: false,
753
753
  smoothExtentConstraint: false,
754
754
  tk: "c77eddc667c5bed016fded560baf93e7"
755
755
  },
package/dist/index.js CHANGED
@@ -581,14 +581,12 @@ var createBaseLayer = (isDark = true) => {
581
581
  "https://ywtg.citybrain.hangzhou.gov.cn:9456/hzsyvector_dark/{z}/{y}/{x}",
582
582
  "https://ywtg.citybrain.hangzhou.gov.cn:9457/hzsyvector_dark/{z}/{y}/{x}",
583
583
  "https://ywtg.citybrain.hangzhou.gov.cn:9458/hzsyvector_dark/{z}/{y}/{x}",
584
- "https://ywtg.citybrain.hangzhou.gov.cn:9459/hzsyvector_dark/{z}/{y}/{x}",
585
- "https://cb.hangzhoumap.gov.cn/E36CCEA93443D1495DB9B9F2B2FFE348CB1A367D75176F815040AB19E54CDCA5DAAA25813AF965E2ABD0CC2463DD1223/PBS/rest/services/hzsyvector_dark/Mapserver/tile/{z}/{y}/{x}"
584
+ "https://ywtg.citybrain.hangzhou.gov.cn:9459/hzsyvector_dark/{z}/{y}/{x}"
586
585
  ] : [
587
586
  "https://ywtg.citybrain.hangzhou.gov.cn:9456/hzsyvector/{z}/{y}/{x}",
588
587
  "https://ywtg.citybrain.hangzhou.gov.cn:9457/hzsyvector/{z}/{y}/{x}",
589
588
  "https://ywtg.citybrain.hangzhou.gov.cn:9458/hzsyvector/{z}/{y}/{x}",
590
- "https://ywtg.citybrain.hangzhou.gov.cn:9459/hzsyvector/{z}/{y}/{x}",
591
- "https://cb.hangzhoumap.gov.cn/E36CCEA93443D1495DB9B9F2B2FFE348CB1A367D75176F815040AB19E54CDCA5DAAA25813AF965E2ABD0CC2463DD1223/PBS/rest/services/hzsyvector/Mapserver/tile/{z}/{y}/{x}"
589
+ "https://ywtg.citybrain.hangzhou.gov.cn:9459/hzsyvector/{z}/{y}/{x}"
592
590
  ]
593
591
  }),
594
592
  properties: {
@@ -655,6 +653,7 @@ var createMapWorldLayer = (layerName, tk = "c77eddc667c5bed016fded560baf93e7") =
655
653
  2682209014892578e-21
656
654
  ]
657
655
  }),
656
+ tilePixelRatio: window.devicePixelRatio || 1,
658
657
  url: `https://t{0-7}.tianditu.gov.cn/${layerName}/wmts?tk=${tk}`
659
658
  }),
660
659
  properties: {
@@ -690,6 +689,7 @@ var createMapInstance = (config = {}) => {
690
689
  baseLayer: "vec-layer",
691
690
  projection: "EPSG:4326",
692
691
  layers: [createBaseLayer()],
692
+ constrainResolution: false,
693
693
  smoothExtentConstraint: false,
694
694
  tk: "c77eddc667c5bed016fded560baf93e7"
695
695
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "map-ol-utils",
3
- "version": "0.0.55",
3
+ "version": "0.0.58",
4
4
  "type": "module",
5
5
  "description": "Openlayers utils library",
6
6
  "files": [