mirage2d 1.1.71 → 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.
- package/dist/Layer/XMap.d.ts +6 -1
- package/dist/Layer/graphicLayer/ImageCanvasLayer.d.ts +15 -0
- package/dist/Layer/index.d.ts +1 -0
- package/dist/base/FeatureEventType.d.ts +2 -1
- package/dist/base/baseOptionType.d.ts +10 -0
- package/dist/css/style.css +9 -1
- package/dist/extend/Control/drawText.d.ts +10 -0
- package/dist/extend/Control/index.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/mirage2d.cjs.js +55 -55
- package/dist/mirage2d.umd.js +55 -55
- package/package.json +1 -1
package/dist/Layer/XMap.d.ts
CHANGED
|
@@ -44,6 +44,10 @@ export declare class MirageMap extends baseMap {
|
|
|
44
44
|
*/
|
|
45
45
|
init(mapID: string): void;
|
|
46
46
|
showGridkInfo(): void;
|
|
47
|
+
showGrid(option: {
|
|
48
|
+
lineColor: 'rgba(0, 0, 0, 1)';
|
|
49
|
+
size: 50;
|
|
50
|
+
}): void;
|
|
47
51
|
showOverView(target: any): void;
|
|
48
52
|
bindmenu(): void;
|
|
49
53
|
bindContextmenu(menu?: any): void;
|
|
@@ -138,7 +142,8 @@ export declare class MirageMap extends baseMap {
|
|
|
138
142
|
* @return {*}
|
|
139
143
|
*/
|
|
140
144
|
displayFeatureInfo(evt: any): void;
|
|
141
|
-
|
|
145
|
+
exportMapSelector(querySelector?: string, errinfo?: Function): void;
|
|
146
|
+
exportMap(type: string, errinfo?: Function): void;
|
|
142
147
|
exportMapPdf(): void;
|
|
143
148
|
destroy(): void;
|
|
144
149
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IImageCanvasLayerOption } from "../../base/baseOptionType";
|
|
2
|
+
import { baseLayer } from "../../base/baseLayer";
|
|
3
|
+
import Scale from "ol-ext/control/Scale";
|
|
4
|
+
import { drawTextControl } from '../../extend/Control/drawText';
|
|
5
|
+
export declare class ImageCanvasLayer extends baseLayer {
|
|
6
|
+
scale: Scale;
|
|
7
|
+
ppi: number;
|
|
8
|
+
layerOption: IImageCanvasLayerOption;
|
|
9
|
+
drawText: drawTextControl;
|
|
10
|
+
constructor(layerid: any, options: IImageCanvasLayerOption);
|
|
11
|
+
setScale(value: number): void;
|
|
12
|
+
setText(htmlstr: string): void;
|
|
13
|
+
setElementStyle(key: string, val: string | number | undefined | null): void;
|
|
14
|
+
appendTo(map: any): void;
|
|
15
|
+
}
|
package/dist/Layer/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export { GraphicImageLayer } from "./graphicLayer/GraphicImageLayer";
|
|
|
7
7
|
export { DayNightLayer } from "./graphicLayer/DayNightLayer";
|
|
8
8
|
export { kmlLayer } from "./graphicLayer/KmlLayer";
|
|
9
9
|
export { PathLayer } from "./graphicLayer/PathLayer";
|
|
10
|
+
export { ImageCanvasLayer } from "./graphicLayer/ImageCanvasLayer";
|
|
10
11
|
export { ArcGisFeatureServiceLayer } from "./graphicLayer/ArcGisFeatureServiceLayer";
|
|
11
12
|
export { TileXyzLayer } from "./tileLayer/TileXyzLayer";
|
|
12
13
|
export { ArcGisMapServerLayer } from "./tileLayer/ArcGisMapServerLayer";
|
|
@@ -24,5 +24,6 @@ export declare enum featureType {
|
|
|
24
24
|
onPathAnimateStart = "onPathAnimateStart",
|
|
25
25
|
onPathAnimateEnd = "onPathAnimateEnd",
|
|
26
26
|
onPathAnimateRunning = "onPathAnimateRunning",
|
|
27
|
-
onPathComputerComplete = "onPathComputerComplete"
|
|
27
|
+
onPathComputerComplete = "onPathComputerComplete",
|
|
28
|
+
onScaleChange = "onScaleChange"
|
|
28
29
|
}
|
|
@@ -86,6 +86,16 @@ export interface IGraphicLayerOption extends ILayerOption {
|
|
|
86
86
|
hashEdit?: boolean;
|
|
87
87
|
hashMove?: boolean;
|
|
88
88
|
}
|
|
89
|
+
export interface IImageCanvasLayerOption extends ILayerOption {
|
|
90
|
+
line1Style?: string;
|
|
91
|
+
line1Width: number;
|
|
92
|
+
line5Style?: string;
|
|
93
|
+
line5Width: number;
|
|
94
|
+
line10Style?: string;
|
|
95
|
+
line10Width: number;
|
|
96
|
+
lineRectStyle?: string;
|
|
97
|
+
lineRectWidth: number;
|
|
98
|
+
}
|
|
89
99
|
export interface ITileLayerOption extends ILayerOption {
|
|
90
100
|
ImageExtent?: {
|
|
91
101
|
xmin: number;
|
package/dist/css/style.css
CHANGED
|
@@ -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
|
+
}
|
package/dist/index.d.ts
CHANGED