mirage2d 1.1.80 → 1.1.82

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.
@@ -34,8 +34,8 @@ export declare class MirageMap extends baseMap {
34
34
  locationbar: mapControls.Locationbar;
35
35
  baseLayerSwitch: mapControls.baseLayerSwitch;
36
36
  swipe: mapControls.swipeControl;
37
+ selectTransform: SelectTransform;
37
38
  };
38
- protected selectTransform: SelectTransform;
39
39
  Proj: proj;
40
40
  private splitInteraction;
41
41
  constructor(mapID: string, option: any);
@@ -2,6 +2,7 @@ import { baseTileLayer } from "../../base/baseTileLayer";
2
2
  import { IGeoImageLayerOption } from "../../base/baseOptionType";
3
3
  import { PolygonGraphic } from "../../graphic/Polygon";
4
4
  import { SelectTransform } from "../../extend/interaction/SelectTransform";
5
+ import { GraphicLayer } from "../graphicLayer/GraphicLayer";
5
6
  /**
6
7
  * @classdesc
7
8
  * xyz影像数据类
@@ -10,7 +11,7 @@ import { SelectTransform } from "../../extend/interaction/SelectTransform";
10
11
  */
11
12
  export declare class GeoImageLayer extends baseTileLayer {
12
13
  option: IGeoImageLayerOption;
13
- GraphicLayer: any;
14
+ GraphicLayer: GraphicLayer;
14
15
  graphic: PolygonGraphic;
15
16
  mSelectTransform: SelectTransform;
16
17
  constructor(layerid: any, options: IGeoImageLayerOption);
@@ -22,10 +23,14 @@ export declare class GeoImageLayer extends baseTileLayer {
22
23
  /**
23
24
  * @description: 开始编辑
24
25
  */
25
- startEdit(): void;
26
+ startEdit(mGraphicLayer: GraphicLayer): void;
26
27
  /**
27
28
  * @description: 结束编辑
28
29
  */
29
30
  endEdit(): void;
30
- appendTo(map: any, mSelectTransform: SelectTransform, mGraphicLayer: any): void;
31
+ /**
32
+ * @description: 设置矢量图层
33
+ */
34
+ private setGraphic;
35
+ getGraphic(): PolygonGraphic;
31
36
  }
@@ -3,5 +3,6 @@ export declare enum XMapEventType {
3
3
  onClick = "click",
4
4
  onMapMove = "onMapMove",
5
5
  onMapMoveEnd = "onMapMoveEnd",
6
- onZoomChange = "onZoomChange"
6
+ onZoomChange = "onZoomChange",
7
+ onRemoveLayer = "onRemoveLayer"
7
8
  }
@@ -3,7 +3,6 @@ import VectorSource from "ol/source/Vector";
3
3
  import { IFeatureAttribute, IGraphicLayerOption, IlevelColor, ITooltipInfo } from "./baseOptionType";
4
4
  import { Geometry } from "ol/geom";
5
5
  import Feature from "ol/Feature";
6
- import { SelectTransform } from "../extend/interaction/SelectTransform";
7
6
  export declare class baseGraphicLayer extends baseLayer {
8
7
  private _graphicLayerSelect;
9
8
  selectFeature: Feature<Geometry>;
@@ -14,7 +13,6 @@ export declare class baseGraphicLayer extends baseLayer {
14
13
  private _draw;
15
14
  private _tipPoint;
16
15
  option: IGraphicLayerOption;
17
- private mSelectTransform;
18
16
  constructor(layerid: string, Options?: IGraphicLayerOption);
19
17
  initSelect(): void;
20
18
  setSelectState(val?: boolean): void;
@@ -149,16 +147,8 @@ export declare class baseGraphicLayer extends baseLayer {
149
147
  */
150
148
  startDraw(option: any): void;
151
149
  changeGraphicData(option: any, drawFeature: any): void;
152
- appendTo(map: any, mSelectTransform: SelectTransform): void;
150
+ appendTo(map: any): void;
153
151
  toGeoJSON(): import("geojson").FeatureCollection<import("geojson").Geometry, {
154
152
  [name: string]: any;
155
153
  }>;
156
- /**
157
- * @description: 启动旋转缩放
158
- */
159
- startTransform(): void;
160
- /**
161
- * @description: 结束旋转缩放
162
- */
163
- endTransform(): void;
164
154
  }
@@ -17,7 +17,7 @@ export declare abstract class baseTileLayer extends baseLayer {
17
17
  option: ITileLayerOption;
18
18
  constructor(layerid: string, Options: ITileLayerOption);
19
19
  setOpacity(opacity: number): void;
20
- appendTo(map: MirageMap, graphicLayer?: any, selectTransform?: any): void;
20
+ appendTo(map: MirageMap): void;
21
21
  addFilter(option?: {
22
22
  feature: Feature;
23
23
  wrapX?: boolean;
@@ -61,7 +61,41 @@ export declare class baseGraphic extends Feature {
61
61
  })
62
62
  */
63
63
  setTextStyle(textStyleOption: ITextOption): void;
64
+ /**
65
+ * 设置三角点样式
66
+ * @param ImageStyleOption
67
+ * @example
68
+ * setTrianglePointStyle({
69
+ scale: 1, //比例
70
+ radius: 5, //大小
71
+ fill: {
72
+ color: "rgba(255, 0, 0,1)", // 填充色
73
+ },
74
+ stroke: {
75
+ color: "rgba(255, 255, 0,1)", // 边框色
76
+ width: 1, //宽度
77
+
78
+ },
79
+ })
80
+ */
64
81
  setTrianglePointStyle(ImageStyleOption: IImageStyle): void;
82
+ /**
83
+ * 设置圆点样式
84
+ * @param ImageStyleOption
85
+ * @example
86
+ * setCirclePointStyle({
87
+ scale: 1, //比例
88
+ radius: 5, //大小
89
+ fill: {
90
+ color: "rgba(255, 0, 0,1)", // 填充色
91
+ },
92
+ stroke: {
93
+ color: "rgba(255, 255, 0,1)", // 边框色
94
+ width: 1, //宽度
95
+
96
+ },
97
+ })
98
+ */
65
99
  setCirclePointStyle(ImageStyleOption: IImageStyle): void;
66
100
  /**
67
101
  * 设置边框简单模式样式