mirage2d 1.1.85 → 1.1.86

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.
@@ -46,6 +46,8 @@ export declare const enum layertype {
46
46
  arcgisMapTile = "arcgisMapTile",
47
47
  imageLayer = "imageLayer",
48
48
  TileGroupLayer = "TileGroupLayer",
49
+ tencent = "tencent",
50
+ baidu = "baidu",
49
51
  group = "group"
50
52
  }
51
53
  export declare enum crsType {
@@ -165,9 +165,20 @@ export declare class MirageMap extends baseMap {
165
165
  */
166
166
  setSelectState(val: boolean): void;
167
167
  /**
168
- * @description: 设置鼠标状态
168
+ * @description: 设置鼠标图标,支持cur,svg,文本
169
169
  * @param {string} val
170
170
  */
171
171
  setMapCursor(val: string): void;
172
+ /**
173
+ * @description: 显示/隐藏基础底图
174
+ * @param {boolean} enabled
175
+ */
176
+ showBaseMap(enabled: boolean): void;
177
+ /**
178
+ * @description: 设置地图参数
179
+ * @param {string} key
180
+ * @param {string} val
181
+ */
182
+ setOptions(key: string, val: any): void;
172
183
  destroy(): void;
173
184
  }
@@ -18,4 +18,5 @@ export { TifLayer } from "./tileLayer/TifLayer";
18
18
  export { imageLayer } from "./tileLayer/imageLayer";
19
19
  export { GeoImageLayer } from "./tileLayer/GeoImageLayer";
20
20
  export { PbfLayer } from "./tileLayer/PbfLayer";
21
+ export { TileTencentLayer } from "./tileLayer/TileTencentLayer";
21
22
  export { XWebGLPointsLayer } from "./XWebGLPointsLayer";
@@ -0,0 +1,22 @@
1
+ import { baseTileLayer } from "../../base/baseTileLayer";
2
+ import { ITileLayerOption } from "src/base/baseOptionType";
3
+ /**
4
+ * @typedef {Object} Options
5
+ * @property {string} [url=''] 影像地址
6
+ * @property {number} [zIndex=1] 排序位置
7
+ * @property {Array<number>} [ImageExtent] 显示范围[minX, minY, maxX, maxY]
8
+ */
9
+ /**
10
+ * @classdesc
11
+ * xyz影像数据类
12
+ * @extends base
13
+ * @api
14
+ */
15
+ export declare class TileBaiDuLayer extends baseTileLayer {
16
+ /**
17
+ * @template {Options} Options
18
+ * @param {string} [layerid='TileXyzLayer'] 默认图层id
19
+ * @param {Options} [Options] Options 配置项
20
+ */
21
+ constructor(layerid: string, Options: ITileLayerOption);
22
+ }
@@ -0,0 +1,22 @@
1
+ import { ITileLayerOption } from "src/base/baseOptionType";
2
+ import { TileXyzLayer } from "./TileXyzLayer";
3
+ /**
4
+ * @typedef {Object} Options
5
+ * @property {string} [url=''] 影像地址
6
+ * @property {number} [zIndex=1] 排序位置
7
+ * @property {Array<number>} [ImageExtent] 显示范围[minX, minY, maxX, maxY]
8
+ */
9
+ /**
10
+ * @classdesc
11
+ * xyz影像数据类
12
+ * @extends base
13
+ * @api
14
+ */
15
+ export declare class TileTencentLayer extends TileXyzLayer {
16
+ /**
17
+ * @template {Options} Options
18
+ * @param {string} [layerid='TileXyzLayer'] 默认图层id
19
+ * @param {Options} [Options] Options 配置项
20
+ */
21
+ constructor(layerid: string, Options: ITileLayerOption);
22
+ }
@@ -109,6 +109,7 @@ export interface ITileLayerOption extends ILayerOption {
109
109
  chinaCRS?: string;
110
110
  ratio?: number;
111
111
  params?: any;
112
+ subdomains?: string;
112
113
  }
113
114
  export interface IGeoImageLayerOption extends ITileLayerOption {
114
115
  imageCenter: Array<number>;