mirage2d 1.2.38 → 1.2.40

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.
@@ -56,6 +56,7 @@ export declare const enum layertype {
56
56
  TileGroupLayer = "TileGroupLayer",
57
57
  WmsLayer = "WmsLayer",
58
58
  WmsTileLayer = "WmsTileLayer",
59
+ WmtsLayer = "WmtsLayer",
59
60
  tencent = "tencent",
60
61
  baidu = "baidu",
61
62
  group = "group",
@@ -13,7 +13,7 @@ export declare class WmtsLayer extends baseTileLayer {
13
13
  * WmtsLayer
14
14
  * @template {Options} Options
15
15
  * @param {string} [layerid='ImageWMSLayer'] 默认图层id
16
- * @param {IWmtsLayerOption} [Options] Options 配置项
16
+ * @param {IWmtsLayerOption} Options 配置项
17
17
  */
18
18
  constructor(layerid: string, Options: IWmtsLayerOption);
19
19
  }
@@ -367,6 +367,14 @@ export declare class baseGraphicLayer extends baseLayer {
367
367
  * @param {boolean} isincludes 默认false 判断相等 当true时判断包含
368
368
  */
369
369
  displayFeatures(json: any, isshow: any, isincludes?: boolean): void;
370
+ /**
371
+ * @description:显示被隐藏的要素
372
+ */
373
+ showFeatures(): void;
374
+ /**
375
+ * @description:隐藏所有要素
376
+ */
377
+ hideFeatures(): void;
370
378
  /**
371
379
  * 绘制图形
372
380
  * @param {object} option 属性结合
@@ -157,11 +157,30 @@ export interface IGeoImageLayerOption extends ITileLayerOption {
157
157
  imageMask?: Coordinate[];
158
158
  hashEdit?: boolean;
159
159
  }
160
+ /**
161
+ * IWmtsLayerOption
162
+ * @param {attributions} Options
163
+ * @param {layer} 图层layer名,需查看xml中设置
164
+ * @param {opacity} 图层透明度 默认值 "1.0"
165
+ * @param {matrixSet} 图层matrixSet
166
+ * @param {format} 图层格式 默认值 "image/png"
167
+ * @param {projection} 图层投影 默认值 "EPSG:3857
168
+ * @param {style} 图层样式 默认值 "default
169
+ * @param {offsetX} 图层X偏移 默认0 可以设置-1等
170
+ * @param {offsetY} 图层Y偏移 默认0 可以设置-1等
171
+ * @param {offsetZ} 图层Z偏移 默认0 可以设置-1等
172
+ */
160
173
  export interface IWmtsLayerOption extends ITileLayerOption {
161
174
  attributions: string;
162
175
  layer: string;
176
+ opacity: number;
163
177
  matrixSet: string;
164
178
  format: string;
179
+ projection: string;
180
+ style: string;
181
+ offsetX: number;
182
+ offsetY: number;
183
+ offsetZ: number;
165
184
  }
166
185
  export interface IlevelColor {
167
186
  maxnum?: number;
@@ -146,6 +146,55 @@
146
146
  "aaa": "https://gac-geo.googlecnapps.cn/maps/vt?lyrs=y&x={x}&y={y}&z={z} ",
147
147
  "url": "http://43.153.68.232/api/GoogleMap/GetTile/?level={z}&row={x}&col={y}&t=934e80b8d980d48b95d452cbcda6aff82b2d1e61ea76c776acc51f469d9f6d56"
148
148
  },
149
+ {
150
+ "id": 2017,
151
+ "pid": 10,
152
+ "name": "谷歌卫星2",
153
+ "icon": "image/basemaps/02/谷歌卫星.png",
154
+ "type": "xyz",
155
+ "url": "https://igss.cgs.gov.cn:6160/igs/rest/ogc/qg20_20210401_FCnDDRJd/WMTSServer?tk=eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJnZW9jbG91ZCIsImV4cCI6MTczOTUzMTc3MX0.160Zy5BihY96C8X_QZSRZE4RFS1mvr_rimh4s7XTvsg&Width=256&Height=256&style=default&tilematrixset=EPSG:4326_qg20_20210401_FCnDDRJd_028mm_GB&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image/png&TileMatrix={z}TileCol={y}&TileRow={x}"
156
+ },
157
+ {
158
+ "id": 2017,
159
+ "pid": 10,
160
+ "name": "谷歌卫星3",
161
+ "icon": "image/basemaps/02/谷歌卫星.png",
162
+ "type": "xyz",
163
+ "url": "https://igss.cgs.gov.cn:6160/igs/rest/ogc/qg20_20210401_FCnDDRJd/WMTSServer?tk=eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJnZW9jbG91ZCIsImV4cCI6MTczOTUzMTc3MX0.160Zy5BihY96C8X_QZSRZE4RFS1mvr_rimh4s7XTvsg&Width=256&Height=256&style=default&tilematrixset=EPSG:4326_qg20_20210401_FCnDDRJd_028mm_GB&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image/png&TileMatrix={z}TileCol={x}&TileRow={y}"
164
+ },
165
+ {
166
+ "id": 2017,
167
+ "pid": 10,
168
+ "name": "谷歌卫星4",
169
+ "icon": "image/basemaps/02/谷歌卫星.png",
170
+ "type": "WmtsLayer",
171
+ "url": "https://data.geopf.fr/wmts?Service=WMTS&Request=GetTile&Version=1.0.0&Layer=GEOGRAPHICALGRIDSYSTEMS.PLANIGNV2&Style=normal&Format=image/png&TileMatrixSet=PM&TileMatrix={z}&TileCol={y}&TileRow={x}",
172
+ "layer": "GEOGRAPHICALGRIDSYSTEMS.PLANIGNV2",
173
+ "matrixSet": "PM",
174
+ "style": "normal",
175
+ "zIndex": 998
176
+ },{
177
+ "id": 2017,
178
+ "pid": 10,
179
+ "name": "谷歌卫星5",
180
+ "icon": "image/basemaps/02/谷歌卫星.png",
181
+ "type": "WmtsLayer",
182
+ "url": "http://www.ngac.org.cn:80/igs/rest/ogc/TAS10B520000SN/WMTSServer/1.0.0/TAS10B520000SN/default/EPSG:4326_TAS10B520000SN_dpi96_GB/{z}/{x}/{y}.png",
183
+ "ver": "1.0.0",
184
+ "opacity": 1.0,
185
+ "attributions": "",
186
+ "layer": "TAS10B520000SN",
187
+ "matrixSet": "EPSG:4326_TAS10B520000SN_dpi96_GB",
188
+ "format": "image/png",
189
+ "projection": "EPSG:4326",
190
+ "style": "default",
191
+ "zIndex": 999,
192
+ "offsetX": 0,
193
+ "offsetY": 0,
194
+ "offsetZ": -1
195
+ },
196
+
197
+
149
198
  {
150
199
  "pid": 10,
151
200
  "name": "天地图地图",
@@ -497,5 +546,5 @@
497
546
  },
498
547
  "appkey": "U2FsdGVkX18tMsBEV5FfQF7ufuq4ZOmVnCreta9VsR86m1UJg6Tscxsi1wdo6GrfHTJzv/2jRln7hUu6i+y9LIKwTjrb9RK9OpHgd0ab9VKj6bgg8CRhdDxknzWMEb8UpPcn1zOmFT0xmdDId/CTX56jVlZP1+BgZKMFi/2RZAoTJhpv6+wd/IOL3YrU2OLXpaohhRLstmhGh6UGPxLuwycG1u4AmPhDpD5ggQQxOYhgbl1xHBKl8oq3l1WFKyds+rvmw/RvLyigb3ugllFKfUCQTX1Qkh5qMB5a6GtstXRt6XnYz3j6fs0LvmbX4316I5Pn9XWsE2oyxdpx0qpySp+fHtUpLv/2+eKADevxHmkIej4lMh0x/K+y213T5IXIXerwAlUXccXg8beQzc7aNkyWvod2LKa7pt/1LoncmapjWezo05TOlZ0o3KHSTJWffdrxn064FvvNXar1wsHqoKhoImtoI1cMA6uYrZME7zDHKTqQBQj0gz2N4niOvhpC87H86gt6SlIEpnfsodY7Ej1AHIQIXWJgA4DOCIORVt15er4zSMyCj0J6G1tTrHi/FkNxm8O7WQLOT3/NmiDhD3aIFfccm7hjmB9icgFI5yJ1t+++fGORjDpLeWfygINI33z5NOdfk6a1MFf4vuti5dbcfNMLVG0IrSVYZqVZdw4YG6zqTCVgyQ=="
499
548
 
500
-
549
+
501
550
  }