cd-mapgis 1.1.30 → 1.1.31

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.d.ts +14 -18
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cd-mapgis",
3
- "version": "1.1.30",
3
+ "version": "1.1.31",
4
4
  "main": "./src/index.js",
5
5
  "types": "./src/index.d.ts",
6
6
  "type": "module",
package/src/index.d.ts CHANGED
@@ -53,19 +53,19 @@ declare module 'cd-mapgis' {
53
53
  vec_w: string;
54
54
  cva_w: string;
55
55
  };
56
- static xyz(p: {
57
- name: string;
58
- url: string;
59
- projection?: string;
60
- }): any;
61
- static ngXyz(p: {
62
- name?: string;
63
- url: string;
64
- }): any;
65
- static onLineTianditu(p: {
66
- type: string;
67
- tk: string;
68
- }): any;
56
+ static xyz(p: { name: string; url: string; projection?: string }): any;
57
+ static ngXyz(p: { name?: string; url: string }): any;
58
+ static onLineTianditu(
59
+ p:
60
+ {
61
+ type: string;
62
+ tk: string;
63
+ }
64
+ | {
65
+ t: string;
66
+ tk: string;
67
+ }
68
+ ): any;
69
69
  static geoServerWmsLayer(p: {
70
70
  workspace: string;
71
71
  name: string;
@@ -74,10 +74,7 @@ declare module 'cd-mapgis' {
74
74
  cql?: string;
75
75
  };
76
76
  }): any;
77
- static getWmtsLayer(p: {
78
- urlPre: string;
79
- urlNext?: string;
80
- }): Promise<any>;
77
+ static getWmtsLayer(p: { urlPre: string; urlNext?: string }): Promise<any>;
81
78
  static getJsonLayer(p: any): any;
82
79
  static getWktLayer(p: any): any;
83
80
  static getTracePointsLayer(p: any): any;
@@ -132,4 +129,3 @@ declare module 'cd-mapgis' {
132
129
  fitToLayer(p?: any): void;
133
130
  }
134
131
  }
135
-