map-ol-utils 0.0.56 → 0.0.59

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
@@ -607,7 +607,7 @@ var import_layer = require("ol/layer");
607
607
  var import_WMTS = __toESM(require("ol/tilegrid/WMTS"), 1);
608
608
  var createBaseLayer = (isDark = true) => {
609
609
  return new import_layer.Tile({
610
- zIndex: -1,
610
+ zIndex: 1,
611
611
  minZoom: 8,
612
612
  maxZoom: 21,
613
613
  source: new import_source.XYZ({
@@ -628,7 +628,7 @@ var createBaseLayer = (isDark = true) => {
628
628
  26817861328125e-19,
629
629
  134089306640625e-20
630
630
  ],
631
- origin: [118.125614083886, 31.2857011022836],
631
+ origin: [118.125614083886, 31.2855711022836],
632
632
  extent: [
633
633
  118.340502132662,
634
634
  29.2073269598186,
@@ -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: {
@@ -751,6 +749,7 @@ var createMapInstance = (config = {}) => {
751
749
  baseLayer: "vec-layer",
752
750
  projection: "EPSG:4326",
753
751
  layers: [createBaseLayer()],
752
+ constrainResolution: false,
754
753
  smoothExtentConstraint: false,
755
754
  tk: "c77eddc667c5bed016fded560baf93e7"
756
755
  },
package/dist/index.js CHANGED
@@ -547,7 +547,7 @@ import { Tile } from "ol/layer";
547
547
  import WMTSTileGrid from "ol/tilegrid/WMTS";
548
548
  var createBaseLayer = (isDark = true) => {
549
549
  return new Tile({
550
- zIndex: -1,
550
+ zIndex: 1,
551
551
  minZoom: 8,
552
552
  maxZoom: 21,
553
553
  source: new XYZ({
@@ -568,7 +568,7 @@ var createBaseLayer = (isDark = true) => {
568
568
  26817861328125e-19,
569
569
  134089306640625e-20
570
570
  ],
571
- origin: [118.125614083886, 31.2857011022836],
571
+ origin: [118.125614083886, 31.2855711022836],
572
572
  extent: [
573
573
  118.340502132662,
574
574
  29.2073269598186,
@@ -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: {
@@ -691,6 +689,7 @@ var createMapInstance = (config = {}) => {
691
689
  baseLayer: "vec-layer",
692
690
  projection: "EPSG:4326",
693
691
  layers: [createBaseLayer()],
692
+ constrainResolution: false,
694
693
  smoothExtentConstraint: false,
695
694
  tk: "c77eddc667c5bed016fded560baf93e7"
696
695
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "map-ol-utils",
3
- "version": "0.0.56",
3
+ "version": "0.0.59",
4
4
  "type": "module",
5
5
  "description": "Openlayers utils library",
6
6
  "files": [