mirage2d 1.1.72 → 1.1.73

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.
@@ -142,6 +142,7 @@ export declare class MirageMap extends baseMap {
142
142
  * @return {*}
143
143
  */
144
144
  displayFeatureInfo(evt: any): void;
145
+ exportMapSelector(querySelector?: string, errinfo?: Function): void;
145
146
  exportMap(type: string, errinfo?: Function): void;
146
147
  exportMapPdf(): void;
147
148
  destroy(): void;
@@ -1,11 +1,15 @@
1
1
  import { IImageCanvasLayerOption } from "../../base/baseOptionType";
2
2
  import { baseLayer } from "../../base/baseLayer";
3
3
  import Scale from "ol-ext/control/Scale";
4
+ import { drawTextControl } from '../../extend/Control/drawText';
4
5
  export declare class ImageCanvasLayer extends baseLayer {
5
6
  scale: Scale;
6
7
  ppi: number;
7
8
  layerOption: IImageCanvasLayerOption;
9
+ drawText: drawTextControl;
8
10
  constructor(layerid: any, options: IImageCanvasLayerOption);
9
11
  setScale(value: number): void;
12
+ setText(htmlstr: string): void;
13
+ setElementStyle(key: string, val: string | number | undefined | null): void;
10
14
  appendTo(map: any): void;
11
15
  }
@@ -0,0 +1,10 @@
1
+ import { Control } from 'ol/control';
2
+ export declare class drawTextControl extends Control {
3
+ private _mouseposition;
4
+ constructor(opt_options: any);
5
+ show(): void;
6
+ getElement(): HTMLDivElement;
7
+ hide(): void;
8
+ updateHtml(html: string): void;
9
+ updateElementStyle(key: string, val: string | number | undefined | null): void;
10
+ }
@@ -1,4 +1,4 @@
1
1
  export { Locationbar } from './locationbar';
2
2
  export { baseLayerSwitch } from './baseLayerSwitch';
3
3
  export { swipeControl } from './swipe';
4
- export { drawGridControl } from './drawGrid';
4
+ export { drawTextControl } from './drawText';