mirage2d 1.2.21 → 1.2.23
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.
package/dist/Tools/measure.d.ts
CHANGED
|
@@ -24,9 +24,11 @@ export declare class XMeasure extends baseClass {
|
|
|
24
24
|
modifyStyle: Style;
|
|
25
25
|
segmentStyle: Style;
|
|
26
26
|
private _modify;
|
|
27
|
+
scale: number;
|
|
27
28
|
constructor(map: any);
|
|
28
29
|
getSource(): any;
|
|
29
30
|
clear(): void;
|
|
31
|
+
setScale(scale: number): void;
|
|
30
32
|
formatLength(line: any): any;
|
|
31
33
|
formatArea(polygon: any): any;
|
|
32
34
|
styleFunction(feature: any, segments: any, drawType: any, tip: any): Style[];
|
|
@@ -11,6 +11,15 @@
|
|
|
11
11
|
import { Control } from "ol/control";
|
|
12
12
|
export declare class CrossStars extends Control {
|
|
13
13
|
constructor(opt_options: any);
|
|
14
|
-
|
|
14
|
+
/**
|
|
15
|
+
* : 添加分屏控件
|
|
16
|
+
* @param {any} imageOption 包含{width,height,offsetX,offsetY},图片宽度,高度,偏移量
|
|
17
|
+
*/
|
|
18
|
+
show(imageOption?: {
|
|
19
|
+
width: number;
|
|
20
|
+
height: number;
|
|
21
|
+
offsetX: number;
|
|
22
|
+
offsetY: number;
|
|
23
|
+
}): void;
|
|
15
24
|
hide(): void;
|
|
16
25
|
}
|