mirage2d 1.1.74 → 1.1.76

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.
@@ -37,12 +37,15 @@ export declare class MirageMap extends baseMap {
37
37
  };
38
38
  protected selectTransform: SelectTransform;
39
39
  Proj: proj;
40
+ private splitInteraction;
40
41
  constructor(mapID: string, option: any);
41
42
  _addTipElement(): void;
42
43
  /**
43
44
  * @param {string} mapID
44
45
  */
45
46
  init(mapID: string): void;
47
+ openSplitInteraction(layer: any): void;
48
+ closeSplitInteraction(): void;
46
49
  showGridkInfo(): void;
47
50
  showGrid(option: {
48
51
  lineColor: 'rgba(0, 0, 0, 1)';
@@ -54,9 +57,9 @@ export declare class MirageMap extends baseMap {
54
57
  appendContextmenu(menu: any): void;
55
58
  scaleControl(scaleType: any): any;
56
59
  /**
57
- * @description: 设置背景图显示/隐藏
58
- * @param {boolean} isshow
59
- */
60
+ * @description: 设置背景图显示/隐藏
61
+ * @param {boolean} isshow
62
+ */
60
63
  setBaseLayerVisible(isshow?: boolean): void;
61
64
  /**
62
65
  * @description: 更新基础图层
@@ -75,14 +78,14 @@ export declare class MirageMap extends baseMap {
75
78
  */
76
79
  getLayers(): baseLayer[];
77
80
  /**
78
- * @description: 获取原始图层
79
- * @return layer
80
- */
81
+ * @description: 获取原始图层
82
+ * @return layer
83
+ */
81
84
  getLayer(layerid: any): any;
82
85
  /**
83
- * @description: 获取用户图层
84
- * @return layer
85
- */
86
+ * @description: 获取用户图层
87
+ * @return layer
88
+ */
86
89
  getUserLayer(layerid: any): any;
87
90
  getTileLayer(): any[];
88
91
  /**
@@ -135,6 +138,11 @@ export declare class MirageMap extends baseMap {
135
138
  duration3?: number;
136
139
  callback?: Function;
137
140
  }): void;
141
+ /**
142
+ * @description: 定位到范围或图形
143
+ * @param {Extent | SimpleGeometry} geometryOrExtent
144
+ * @param {FitOptions} opt_options
145
+ */
138
146
  fit(geometryOrExtent: Extent | SimpleGeometry, opt_options: FitOptions): void;
139
147
  /**
140
148
  * @description: 获取地图鼠标点击
@@ -142,7 +150,13 @@ export declare class MirageMap extends baseMap {
142
150
  * @return {*}
143
151
  */
144
152
  displayFeatureInfo(evt: any): void;
145
- exportMapSelector(querySelector?: string, errinfo?: Function): void;
153
+ /**
154
+ * @description: 根据选择器导出图片
155
+ * @param {string} querySelector
156
+ * @param {Function} callbackBase64 返回base64图
157
+ * @param {Function} errinfo 返回错误信息
158
+ */
159
+ exportMapSelector(querySelector?: string, callbackBase64?: Function, errinfo?: Function): void;
146
160
  exportMap(type: string, errinfo?: Function): void;
147
161
  exportMapPdf(): void;
148
162
  destroy(): void;