mirage2d 1.1.71 → 1.1.72

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.
@@ -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,7 @@ export declare class MirageMap extends baseMap {
138
142
  * @return {*}
139
143
  */
140
144
  displayFeatureInfo(evt: any): void;
141
- exportMap(type: string): void;
145
+ exportMap(type: string, errinfo?: Function): void;
142
146
  exportMapPdf(): void;
143
147
  destroy(): void;
144
148
  }
@@ -0,0 +1,11 @@
1
+ import { IImageCanvasLayerOption } from "../../base/baseOptionType";
2
+ import { baseLayer } from "../../base/baseLayer";
3
+ import Scale from "ol-ext/control/Scale";
4
+ export declare class ImageCanvasLayer extends baseLayer {
5
+ scale: Scale;
6
+ ppi: number;
7
+ layerOption: IImageCanvasLayerOption;
8
+ constructor(layerid: any, options: IImageCanvasLayerOption);
9
+ setScale(value: number): void;
10
+ appendTo(map: any): void;
11
+ }
@@ -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;
@@ -298,4 +298,12 @@
298
298
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
299
299
  border-radius: 5px;
300
300
 
301
- }
301
+ }
302
+
303
+ .ol-compassctrl.top {
304
+ top: 0;
305
+ left: 0;
306
+ width: 100%;
307
+ height:100%;
308
+ z-index: 9999;
309
+ }
@@ -0,0 +1,12 @@
1
+ import { Map } from 'ol';
2
+ import { eventTarget } from "../../base/eventTarget";
3
+ export declare class drawGridControl extends eventTarget {
4
+ private _map;
5
+ private _drawGrid;
6
+ private canvasLayer1;
7
+ layer1: HTMLCanvasElement;
8
+ constructor(map: Map);
9
+ show(): void;
10
+ hide(): void;
11
+ remove(): void;
12
+ }
@@ -1,3 +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';
package/dist/index.d.ts CHANGED
@@ -13,3 +13,4 @@ export { proj } from "./proj4/proj";
13
13
  export { MirageDefaultStyle as defaultStyle } from "./Tools/defaultStyle";
14
14
  export { eventTarget } from "./base/eventTarget";
15
15
  export * as Query from "./query/index";
16
+ export * as Controls from "./extend/Control";