mirage2d 1.2.2 → 1.2.3

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.
Files changed (73) hide show
  1. package/dist/Enum/typeEnum.d.ts +63 -56
  2. package/dist/Layer/XMap.d.ts +146 -108
  3. package/dist/Layer/graphicLayer/ArcGisFeatureServiceLayer.d.ts +7 -7
  4. package/dist/Layer/graphicLayer/ClusterImageLayer.d.ts +9 -0
  5. package/dist/Layer/graphicLayer/ClusterLayer.d.ts +7 -0
  6. package/dist/Layer/graphicLayer/DayNightLayer.d.ts +7 -0
  7. package/dist/Layer/graphicLayer/DivLayer.d.ts +7 -0
  8. package/dist/Layer/graphicLayer/GraphicImageLayer.d.ts +7 -0
  9. package/dist/Layer/graphicLayer/GraphicLayer.d.ts +2 -2
  10. package/dist/Layer/graphicLayer/HeatmapLayer.d.ts +7 -0
  11. package/dist/Layer/graphicLayer/ImageCanvasLayer.d.ts +1 -1
  12. package/dist/Layer/graphicLayer/KmlLayer.d.ts +7 -0
  13. package/dist/Layer/graphicLayer/PathLayer.d.ts +44 -41
  14. package/dist/Layer/graphicLayer/WfsLayer.d.ts +18 -12
  15. package/dist/Layer/index.d.ts +10 -0
  16. package/dist/Layer/tileLayer/ArcGisMapServerLayer.d.ts +2 -1
  17. package/dist/Layer/tileLayer/ArcGisTileXyzLayer.d.ts +3 -3
  18. package/dist/Layer/tileLayer/GeoImageLayer.d.ts +17 -9
  19. package/dist/Layer/tileLayer/PbfLayer.d.ts +1 -1
  20. package/dist/Layer/tileLayer/TifLayer.d.ts +7 -0
  21. package/dist/Layer/tileLayer/TileBaiDuLayer.d.ts +3 -3
  22. package/dist/Layer/tileLayer/TileGroupLayer.d.ts +13 -2
  23. package/dist/Layer/tileLayer/TileTencentLayer.d.ts +10 -3
  24. package/dist/Layer/tileLayer/TileXyzLayer.d.ts +11 -4
  25. package/dist/Layer/tileLayer/WmsLayer.d.ts +8 -0
  26. package/dist/Layer/tileLayer/WmtsLayer.d.ts +8 -0
  27. package/dist/Layer/tileLayer/imageLayer.d.ts +7 -0
  28. package/dist/MirageHttp.es.js.map +205 -1
  29. package/dist/MirageHttp.umd.js.map +1263 -1
  30. package/dist/Tools/SpatialAnalysis.d.ts +235 -215
  31. package/dist/Tools/defaultStyle.d.ts +7 -0
  32. package/dist/Tools/measure.d.ts +7 -0
  33. package/dist/Tools/secret.d.ts +12 -6
  34. package/dist/Tools/toolbox.d.ts +2 -3
  35. package/dist/Tools/util/format.d.ts +21 -1
  36. package/dist/Tools/util/index.d.ts +10 -0
  37. package/dist/Tools/util/isutil.d.ts +27 -17
  38. package/dist/Tools/util/tools.d.ts +10 -0
  39. package/dist/base/EventType.d.ts +7 -0
  40. package/dist/base/FeatureEventType.d.ts +7 -0
  41. package/dist/base/LayerEventType.d.ts +7 -0
  42. package/dist/base/MapEventType.d.ts +7 -0
  43. package/dist/base/base.d.ts +30 -3
  44. package/dist/base/baseClass.d.ts +22 -5
  45. package/dist/base/baseGraphicLayer.d.ts +93 -77
  46. package/dist/base/baseLayer.d.ts +7 -0
  47. package/dist/base/baseMap.d.ts +7 -0
  48. package/dist/base/baseOptionType.d.ts +15 -5
  49. package/dist/base/baseTileLayer.d.ts +10 -0
  50. package/dist/base/eventTarget.d.ts +10 -0
  51. package/dist/extend/Control/baseLayerSwitch.d.ts +15 -1
  52. package/dist/extend/Control/drawText.d.ts +11 -1
  53. package/dist/extend/Control/imageHJ.d.ts +10 -3
  54. package/dist/extend/Control/index.d.ts +14 -4
  55. package/dist/extend/Control/locationbar.d.ts +10 -3
  56. package/dist/extend/Control/swipe.d.ts +16 -5
  57. package/dist/extend/interaction/SelectTransform.d.ts +4 -5
  58. package/dist/extend/tykg.d.ts +5 -5
  59. package/dist/graphic/Curve.d.ts +10 -0
  60. package/dist/graphic/DivGraphic.d.ts +13 -4
  61. package/dist/graphic/baseGraphic.d.ts +63 -60
  62. package/dist/graphic/index.d.ts +10 -0
  63. package/dist/index.d.ts +7 -0
  64. package/dist/lib/includeLibs.js +23 -24
  65. package/dist/mirage2d.cjs.js +37 -37
  66. package/dist/mirage2d.umd.js +37 -37
  67. package/dist/proj4/proj.d.ts +22 -10
  68. package/dist/query/GaodePOI.d.ts +10 -0
  69. package/dist/query/GaodeRoute.d.ts +17 -0
  70. package/dist/query/baseGaode.d.ts +7 -0
  71. package/dist/query/index.d.ts +10 -0
  72. package/package.json +26 -7
  73. package/readme.md +12 -12
@@ -1,3 +1,10 @@
1
+ /**
2
+ * @Author= xd
3
+ * @Date= 2021-12-28 13:11:44
4
+ * @LastEditors: xd
5
+ * @LastEditTime: 2023-05-16 13:19:32
6
+ * @Description: 功能
7
+ */
1
8
  export declare const enum featuretype {
2
9
  /**
3
10
  * 矢量图层
@@ -53,16 +60,16 @@ export declare const enum layertype {
53
60
  }
54
61
  export declare enum crsType {
55
62
  /**
56
- * Web墨卡托投影坐标系
57
- */
63
+ * Web墨卡托投影坐标系
64
+ */
58
65
  "EPSG3857" = "3857",
59
66
  /**
60
- * WGS84地理坐标系
61
- */
62
- 'EPSG4326' = "4326",
67
+ * WGS84地理坐标系
68
+ */
69
+ "EPSG4326" = "4326",
63
70
  /**
64
- * 中国大地2000 (CGCS2000)地理坐标系
65
- */
71
+ * 中国大地2000 (CGCS2000)地理坐标系
72
+ */
66
73
  EPSG4490 = "4490",
67
74
  /**
68
75
  * 单张图片
@@ -77,13 +84,13 @@ export declare enum crsType {
77
84
  */
78
85
  BAIDU = "BAIDU",
79
86
  /**
80
- * GCJ02
81
- */
87
+ * GCJ02
88
+ */
82
89
  GCJ02 = "GCJ02",
83
90
  /**
84
- * CGCS2000 Gauss-Kruger Zone 平面投影,3度分带,横坐标前加带号。
85
- * 范围:EPSG:4513 到 EPSG:4533 (目前仅坐标转换使用)
86
- */
91
+ * CGCS2000 Gauss-Kruger Zone 平面投影,3度分带,横坐标前加带号。
92
+ * 范围:EPSG:4513 到 EPSG:4533 (目前仅坐标转换使用)
93
+ */
87
94
  CGCS2000_GK_Zone_3 = "CGCS2000_GK_Zone_3",
88
95
  /**
89
96
  * CGCS2000 Gauss-Kruger Zone 平面投影,6度分带,横坐标前加带号。
@@ -120,63 +127,63 @@ export declare enum crsType {
120
127
  * 范围:EPSG:4502 到 EPSG:4512 (目前仅坐标转换使用)
121
128
  */
122
129
  CGCS2000_GK_CM_6 = "CGCS2000_GK_CM_6",
123
- 'other' = "other"
130
+ "other" = "other"
124
131
  }
125
132
  export declare enum datagridType {
126
133
  "point" = "point",
127
- 'hex' = "hex",
128
- 'square' = "square",
129
- 'triangle' = "triangle"
134
+ "hex" = "hex",
135
+ "square" = "square",
136
+ "triangle" = "triangle"
130
137
  }
131
138
  export declare enum pointToPolygonType {
132
139
  "voronoi" = "voronoi",
133
- 'tin' = "tin",
134
- 'convex' = "convex"
140
+ "tin" = "tin",
141
+ "convex" = "convex"
135
142
  }
136
143
  export declare enum featureAnimationType {
137
144
  "Bounce" = "Bounce",
138
- 'Blink' = "Blink",
139
- 'Drop' = "Drop",
140
- 'Fade' = "Fade",
141
- 'Path' = "Path",
142
- 'Shake' = "Shake",
143
- 'Show' = "Show",
144
- 'Slide' = "Slide",
145
- 'Throw' = "Throw",
146
- 'Zoom' = "Zoom",
147
- 'Teleport' = "Teleport",
148
- 'ZoomOut' = "ZoomOut"
145
+ "Blink" = "Blink",
146
+ "Drop" = "Drop",
147
+ "Fade" = "Fade",
148
+ "Path" = "Path",
149
+ "Shake" = "Shake",
150
+ "Show" = "Show",
151
+ "Slide" = "Slide",
152
+ "Throw" = "Throw",
153
+ "Zoom" = "Zoom",
154
+ "Teleport" = "Teleport",
155
+ "ZoomOut" = "ZoomOut"
149
156
  }
150
157
  export declare enum ColorizeFilterType {
151
158
  "grayscale" = "grayscale",
152
- 'invert' = "invert",
153
- 'sepia' = "sepia",
154
- 'color' = "color",
155
- 'difference' = "difference",
156
- 'color-dodge' = "color-dodge",
157
- 'hue' = "hue",
158
- 'saturation' = "saturation",
159
- 'luminosity' = "luminosity",
160
- 'enhance' = "enhance",
161
- 'contrast' = "contrast"
159
+ "invert" = "invert",
160
+ "sepia" = "sepia",
161
+ "color" = "color",
162
+ "difference" = "difference",
163
+ "color-dodge" = "color-dodge",
164
+ "hue" = "hue",
165
+ "saturation" = "saturation",
166
+ "luminosity" = "luminosity",
167
+ "enhance" = "enhance",
168
+ "contrast" = "contrast"
162
169
  }
163
170
  export declare enum CanvasFilterType {
164
171
  "emboss" = "emboss",
165
- 'erode' = "erode",
166
- 'blur' = "blur",
167
- 'brightness' = "brightness",
168
- 'contrast' = "contrast",
169
- 'grayscale' = "grayscale",
170
- 'sepia' = "sepia",
171
- 'hueRotate' = "hueRotate",
172
- 'invert' = "invert",
173
- 'saturate' = "saturate",
174
- 'paper' = "paper"
172
+ "erode" = "erode",
173
+ "blur" = "blur",
174
+ "brightness" = "brightness",
175
+ "contrast" = "contrast",
176
+ "grayscale" = "grayscale",
177
+ "sepia" = "sepia",
178
+ "hueRotate" = "hueRotate",
179
+ "invert" = "invert",
180
+ "saturate" = "saturate",
181
+ "paper" = "paper"
175
182
  }
176
183
  export declare enum PencilSketchFilterType {
177
184
  "intensity" = "intensity",
178
- 'color' = "color",
179
- 'blur' = "blur"
185
+ "color" = "color",
186
+ "blur" = "blur"
180
187
  }
181
188
  export declare enum featureStyleType {
182
189
  "hatch" = "hatch",
@@ -222,11 +229,11 @@ export declare enum featureStyleType {
222
229
  }
223
230
  export declare enum QueryType {
224
231
  "gaode_poi_text" = 1,
225
- 'gaode_poi_around' = 0,
226
- 'gaode_poi_polygon' = 2,
227
- 'gaode_route_driving' = 0,
228
- 'gaode_route_walking' = 1,
229
- 'gaode_route_integrated' = 2
232
+ "gaode_poi_around" = 0,
233
+ "gaode_poi_polygon" = 2,
234
+ "gaode_route_driving" = 0,
235
+ "gaode_route_walking" = 1,
236
+ "gaode_route_integrated" = 2
230
237
  }
231
238
  export declare enum positioning {
232
239
  bottomleft = "bottom-left",
@@ -1,14 +1,21 @@
1
+ /**
2
+ * @author: xd
3
+ * @Date: 2021-12-28 20:51:21
4
+ * @LastEditors: xd
5
+ * @LastEditTime: 2023-06-05 19:58:10
6
+ * @Description: 功能
7
+ */
1
8
  import { Feature, Map } from "ol";
2
- import { GraphicImageLayer } from './graphicLayer/GraphicImageLayer';
3
- import { baseLayer } from './../base/baseLayer';
9
+ import { GraphicImageLayer } from "./graphicLayer/GraphicImageLayer";
10
+ import { baseLayer } from "./../base/baseLayer";
4
11
  import { OverviewMap } from "ol/control";
5
12
  import { XMeasure } from "../Tools/measure";
6
13
  import { crsType } from "../Enum/typeEnum";
7
14
  import { baseMap } from "../base/baseMap";
8
- import { IMapViewOption } from '../base/baseOptionType';
15
+ import { IMapViewOption } from "../base/baseOptionType";
9
16
  import { FitOptions } from "ol/View";
10
- import { Extent } from 'ol/extent';
11
- import { Geometry, SimpleGeometry } from 'ol/geom';
17
+ import { Extent } from "ol/extent";
18
+ import { Geometry, SimpleGeometry } from "ol/geom";
12
19
  import * as mapControls from "../extend/Control";
13
20
  import { SelectTransform } from "../extend/interaction/SelectTransform";
14
21
  import { proj } from "../proj4/proj";
@@ -43,45 +50,54 @@ export declare class MirageMap extends baseMap {
43
50
  constructor(mapID: string, option: any);
44
51
  private _addTipElement;
45
52
  /**
53
+ * 初始化地图
46
54
  * @param {string} mapID
47
55
  */
48
56
  init(mapID: string): void;
49
57
  openSplitInteraction(layer: any): void;
50
58
  closeSplitInteraction(): void;
51
59
  /**
52
- * @description 显示网格
53
- */
60
+ * 显示网格
61
+ */
54
62
  showGridkInfo(): void;
55
63
  /**
56
- * @description 显示网格
57
- */
64
+ * 显示网格
65
+ * @param {object} option - 配置项对象
66
+ * @param {string} option.lineColor - 线颜色
67
+ * @param {number} option.size - 网格大小
68
+ */
58
69
  showGrid(option: {
59
- lineColor: 'rgba(0, 0, 0, 1)';
70
+ lineColor: "rgba(0, 0, 0, 1)";
60
71
  size: 50;
61
72
  }): void;
62
73
  /**
63
- * @description 显示鹰眼
64
- * @param { string | HTMLElement} target 承载元素
65
- * @param {string} layername option所包含的图层名称
66
- */
74
+ * 显示鹰眼
75
+ * @param { string | HTMLElement} target 承载元素
76
+ * @param {string} layername option所包含的图层名称
77
+ */
67
78
  showOverView(target: string | HTMLElement, layername?: string): void;
68
79
  bindmenu(): void;
69
80
  bindContextmenu(menu?: any): void;
70
81
  appendContextmenu(menu: any): void;
71
82
  scaleControl(scaleType: any): any;
72
83
  /**
73
- * @description: 设置背景图显示/隐藏
74
- * @param {boolean} isshow
75
- */
84
+ * 设置背景图显示/隐藏
85
+ * @param {boolean} isshow
86
+ */
76
87
  setZoomControlVisible(isshow?: boolean): void;
77
88
  /**
78
- * @description: 设置背景图显示/隐藏
79
- * @param {boolean} isshow
80
- */
89
+ * 设置背景图显示/隐藏
90
+ * @param {boolean} isshow
91
+ */
81
92
  setBaseLayerVisible(isshow?: boolean): void;
82
93
  /**
83
- * @description: 更新基础图层
84
- * @param {String} layername
94
+ * 更新基础图层
95
+ * @param {string} layername -图层名称
96
+ * @param {object} maskOption -配置项
97
+ * @param {string} maskOption.feature -图形
98
+ * @param {string} maskOption.wrapX -wrapX
99
+ * @param {string} maskOption.inner -inner
100
+ * @param {string} maskOption.color -color
85
101
  */
86
102
  setBaseLayer(layername: any, maskOption?: {
87
103
  feature: Feature;
@@ -91,77 +107,81 @@ export declare class MirageMap extends baseMap {
91
107
  }): void;
92
108
  getMap(): Map;
93
109
  /**
94
- * @description: 获取所有图层
95
- * @return {*}
110
+ * 获取已加载所有图层
111
+ * @returns {baseLayer[]} -图层数组
96
112
  */
97
113
  getLayers(): baseLayer[];
98
114
  /**
99
- * @description: 获取原始图层
100
- * @return layer
101
- */
102
- getLayer(layerid: any): any;
115
+ * 获取原始图层
116
+ * @param {string} layerid
117
+ * @returns {any} layer
118
+ */
119
+ getLayer(layerid: string): any;
103
120
  /**
104
- * @description: 获取用户图层
105
- * @return layer
106
- */
107
- getUserLayer(layerid: any): any;
121
+ * 获取用户定义的图层
122
+ * @param {string} layerid
123
+ * @returns {baseLayer} layer
124
+ */
125
+ getUserLayer(layerid: string): any;
108
126
  getTileLayer(): any[];
109
127
  /**
110
- * @description: 获取基础图层
111
- * @param {*} layername
112
- * @return {*}
128
+ * 获取基础图层
129
+ * @param {string} layername
130
+ * @returns {any} 返回一个系统基础图层
113
131
  */
114
132
  private getBaseLayer;
115
133
  addLayer(layer: any): void;
116
134
  removeLayer(layerid: any): void;
117
135
  /**
118
- * @description: 设置经纬度中心点
136
+ * : 设置经纬度中心点
119
137
  * @param {number[]} lnglat 坐标数组
120
138
  * @param {number} zoom 级别
121
139
  * @param {boolean} flash 是否闪烁
122
140
  */
123
141
  setCenterBy4326(lnglat: number[], zoom?: number, flash?: boolean): void;
124
142
  /**
125
- * @description: 设置中心点,默认3857坐标
126
- * @param {number[]} lnglat 坐标数组
127
- * @param {number} zoom 级别
128
- * @param {crsType} dataWkID 坐标wkid
129
- * @param {boolean} flash 是否闪烁
130
- */
143
+ * : 设置中心点,默认3857坐标
144
+ * @param {number[]} lnglat 坐标数组
145
+ * @param {number} zoom 级别
146
+ * @param {crsType} dataWkID 坐标wkid
147
+ * @param {boolean} flash 是否闪烁
148
+ */
131
149
  setCenter(lnglat: number[], zoom?: number, dataWkID?: crsType, flash?: boolean): void;
132
150
  /**
133
- * @description: 获取当前视窗中心及级别
134
- * @return {any} {center,level}
135
- */
151
+ * : 获取当前视窗中心及级别
152
+ * @returns {any} {center,level}
153
+ */
136
154
  getView(): {
137
155
  center: import("ol/coordinate").Coordinate;
138
156
  level: number;
139
157
  };
140
158
  /**
141
- * @description: 获取当前视窗四角范围
142
- * @return {Extent} {x1,y1,x2,y2}
143
- */
159
+ * : 获取当前视窗四角范围
160
+ * @returns {Extent} {x1,y1,x2,y2}
161
+ */
144
162
  getExtent(): Extent;
145
163
  /**
146
- * @description: 显示闪烁点
147
- * @param {number[]} coordinate 坐标数组
148
- */
164
+ * : 显示闪烁点
165
+ * @param {number[]} coordinate 坐标数组
166
+ */
149
167
  showflashPoint(coordinate: number[]): void;
150
168
  /**
151
- * @description: 视角定位动画,默认当前定位后放大1级
152
- * @param {number[]} coordinate 坐标数组
153
- * @param {number} duration 过程时间
154
- */
155
- lookToAnimate(coordinate: number[], duration?: number): void;
156
- /**
157
- * @description: 定位到经纬度
158
- * @param {number[]} option.location: 经纬度[],
159
- * @param {number} option.firstzoom: 初始zoom,
160
- * @param {number} option.tozoom: 目标zoom,
161
- * @param {number} option.duration1: 拉高时间,
162
- * @param {number} option.duration2: 平移时间,
163
- * @param {number} option.duration3: 降落时间,
164
- * @param {Function} option.callback: Function 完成后回调
169
+ * : 视角定位动画,默认当前定位后放大1级
170
+ * @param {number[]} coordinate 坐标数组
171
+ * @param {number} duration 过程时间
172
+ * @param {number[]} zoomIn
173
+ */
174
+ lookToAnimate(coordinate: number[], duration?: number, zoomIn?: number): void;
175
+ /**
176
+ * 定位到经纬度
177
+ * @param {object} option - 配置项
178
+ * @param {number[]} option.location - 经纬度[]
179
+ * @param {number} option.firstzoom - 初始zoom
180
+ * @param {number} option.tozoom - 目标zoom
181
+ * @param {number} option.duration1 - 拉高时间
182
+ * @param {number} option.duration2 - 平移时间
183
+ * @param {number} option.duration3 - 降落时间
184
+ * @param {Function} option.callback -Function 完成后回调
165
185
  */
166
186
  flyToLnglat(option: {
167
187
  location: number[];
@@ -173,15 +193,16 @@ export declare class MirageMap extends baseMap {
173
193
  callback?: Function;
174
194
  }): any;
175
195
  /**
176
- * @description: 定位到经纬度
177
- * @param {number[] | Geometry | Feature} option.location: 经纬度[]或 Geometry | Feature,
178
- * @param {number} option.firstzoom: 初始zoom,
179
- * @param {number} option.tozoom: 目标zoom,
180
- * @param {number} option.duration1: 拉高时间,
181
- * @param {number} option.duration2: 平移时间,
182
- * @param {number} option.duration3: 降落时间,
183
- * @param {Function} option.callback: Function 完成后回调
184
- */
196
+ * 定位到经纬度
197
+ * @param {object} option - 配置项
198
+ * @param {number[] | Geometry | Feature} option.location - 经纬度[]或 Geometry | Feature,
199
+ * @param {number} option.firstzoom - 初始zoom,
200
+ * @param {number} option.tozoom - 目标zoom,
201
+ * @param {number} option.duration1 - 拉高时间,
202
+ * @param {number} option.duration2 - 平移时间,
203
+ * @param {number} option.duration3 - 降落时间,
204
+ * @param {Function} option.callback - Function 完成后回调
205
+ */
185
206
  flyTo(option: {
186
207
  location: number[] | Geometry | Feature;
187
208
  firstzoom?: number;
@@ -192,64 +213,81 @@ export declare class MirageMap extends baseMap {
192
213
  callback?: Function;
193
214
  }): void;
194
215
  /**
195
- * @description: 定位到范围或图形
216
+ * : 定位到范围或图形
196
217
  * @param {Extent | SimpleGeometry} geometryOrExtent
197
218
  * @param {FitOptions} opt_options
219
+ * @example {FitOptions} opt_options
220
+ * {
221
+ size?: import("./size.js").Size | undefined;
222
+ padding?: number[] | undefined;
223
+ nearest?: boolean | undefined;
224
+ minResolution?: number | undefined;
225
+ maxZoom?: number | undefined;
226
+ duration?: number | undefined;
227
+ easing?: (arg0: number) => number;
228
+ callback?: (arg0: boolean) => void;
229
+ }
198
230
  */
199
231
  fit(geometryOrExtent: Extent | SimpleGeometry, opt_options: FitOptions): void;
200
232
  /**
201
- * @description: 获取地图鼠标点击
202
- * @param {*} pixel
203
- * @return {*}
233
+ * 获取地图鼠标点击
234
+ * @param {any} evt
235
+ * @returns {any}
204
236
  */
205
237
  displayFeatureInfo(evt: any): void;
206
238
  /**
207
- * @description: 根据选择器导出图片
208
- * @param {string} querySelector
209
- * @param {Function} callbackBase64 返回base64图
210
- * @param {Function} errinfo 返回错误信息
211
- */
239
+ * : 根据选择器导出图片
240
+ * @param {string} querySelector
241
+ * @param {Function} callbackCanvas 返回Canvas 不传值则返回图片下载
242
+ * @param {Function} errinfo 返回错误信息
243
+ */
212
244
  exportMapSelector(querySelector?: string, callbackCanvas?: Function, errinfo?: Function): void;
245
+ /**
246
+ * : 导出图片
247
+ * @param {string} type "png"
248
+ * @param {Function} errinfo
249
+ * @returns {*}
250
+ */
213
251
  exportMap(type: string, errinfo?: Function): void;
214
252
  exportMapPdf(): void;
215
253
  /**
216
- * @description: 开关选择器状态
217
- * @param {boolean} val
218
- */
254
+ * : 开关选择器状态
255
+ * @param {boolean} val
256
+ */
219
257
  setSelectState(val: boolean): void;
220
258
  /**
221
- * @description: 设置鼠标图标,支持cur,svg,文本
222
- * @param {string} val
223
- */
259
+ * : 设置鼠标图标,支持cur,svg,文本
260
+ * @param {string} val
261
+ */
224
262
  setMapCursor(val: string): void;
225
263
  /**
226
- * @description: 设置地图旋转
227
- * @param {number} val 角度值
228
- */
264
+ * : 设置地图旋转
265
+ * @param {number} val 角度值
266
+ */
229
267
  setRotation(val: number): void;
230
268
  /**
231
- * @description: 显示/隐藏基础底图
232
- * @param {boolean} enabled
233
- */
269
+ * : 显示/隐藏基础底图
270
+ * @param {boolean} enabled
271
+ */
234
272
  showBaseMap(enabled: boolean): void;
235
273
  /**
236
- * @description: 显示多窗口,options参数数量决定窗口数量
237
- * @param {object} options
238
- * @ {string | HTMLElement} options.target 承载div的id
239
- * @ {string } options.baselayer 底图名,默认当前底图
240
- * @ {any} options.overLayer 覆盖层,tilelayer
241
- * @ {boolean} options.syncGraphicLayer 是否同步矢量层
242
- */
274
+ * : 显示多窗口,options参数数量决定窗口数量
275
+ * @param {object} options
276
+ * @ {string | HTMLElement} options.target 承载div的id
277
+ * @ {string } options.baselayer 底图名,默认当前底图
278
+ * @ {any} options.overLayer 覆盖层,tilelayer
279
+ * @ {boolean} options.syncGraphicLayer 是否同步矢量层
280
+ */
243
281
  showMultiWindow(options: IMapViewOption[]): void;
244
282
  /**
245
- * @description:隐藏多窗口,仅做地图关联销毁,不处理样式及div销毁
246
- */
283
+ * :隐藏多窗口,仅做地图关联销毁,不处理样式及div销毁
284
+ */
247
285
  hideMultiWindow(): void;
248
286
  /**
249
- * @description: 设置地图参数
250
- * @param {string} key
251
- * @param {string} val
252
- */
287
+ * 设置地图参数
288
+ * @param {string} key
289
+ * @param {string} val
290
+ */
253
291
  setOptions(key: string, val: any): void;
254
292
  destroy(): void;
255
293
  }
@@ -1,5 +1,5 @@
1
1
  import { IArcGisFeatureOption } from "../../base/baseOptionType";
2
- import { GraphicLayer } from './GraphicLayer';
2
+ import { GraphicLayer } from "./GraphicLayer";
3
3
  export declare class ArcGisFeatureServiceLayer extends GraphicLayer {
4
4
  queryParams: any;
5
5
  isLoading: boolean;
@@ -7,16 +7,16 @@ export declare class ArcGisFeatureServiceLayer extends GraphicLayer {
7
7
  constructor(layerid: string, options?: IArcGisFeatureOption);
8
8
  private queryData;
9
9
  /**
10
- * @description: 查询arcgis server的参数,根据arcgis server要求传递
11
- * @example
12
- {
10
+ * 查询arcgis server的参数,根据arcgis server要求传递
11
+ * @param {any} queryParams
12
+ * @example
13
+ {
13
14
  where: '1=1', // 过滤条件
14
15
  outFields: '*', // 需要输出的字段
15
16
  feature:feature// 绘制的要素与extent 2选1 同时存在时extent生效
16
17
  extent: [x1, y1, x2,y2], //范围,不传递则默认当前视图范围
17
18
  extentWkid: "102100" //范围坐标系 默认102100 可选4326
18
-
19
- }
20
- */
19
+ }
20
+ */
21
21
  query(queryParams?: {}): void;
22
22
  }
@@ -1,3 +1,10 @@
1
+ /**
2
+ * @author: xd
3
+ * @Date: 2022-01-11 20:18:05
4
+ * @LastEditors: xd
5
+ * @LastEditTime: 2022-11-26 13:02:48
6
+ * @Description: 功能
7
+ */
1
8
  import { Cluster } from "ol/source";
2
9
  import Select from "ol/interaction/Select";
3
10
  import { baseGraphicLayer } from "../../base/baseGraphicLayer";
@@ -8,7 +15,9 @@ export declare class ClusterImageLayer extends baseGraphicLayer {
8
15
  clusterSource: Cluster | undefined;
9
16
  selectCluster: Select | undefined;
10
17
  /**
18
+ * ClusterImageLayer
11
19
  * @param {any} layerid
20
+ * @param {IClusterImageLayerOption} options
12
21
  */
13
22
  constructor(layerid: any, options: IClusterImageLayerOption);
14
23
  addFeaturesMN(map: any, nb: any): void;
@@ -1,3 +1,10 @@
1
+ /**
2
+ * @author: xd
3
+ * @Date: 2022-01-11 20:18:05
4
+ * @LastEditors: xd
5
+ * @LastEditTime: 2022-11-26 13:02:54
6
+ * @Description: 功能
7
+ */
1
8
  import { Cluster } from "ol/source";
2
9
  import { baseGraphicLayer } from "../../base/baseGraphicLayer";
3
10
  import { IClusterLayerOption } from "src/base/baseOptionType";
@@ -1,3 +1,10 @@
1
+ /**
2
+ * @author: xd
3
+ * @Date: 2022-01-13 22:43:45
4
+ * @LastEditors: xd
5
+ * @LastEditTime: 2022-11-26 13:02:51
6
+ * @Description: 功能
7
+ */
1
8
  import { baseGraphicLayer } from "../../base/baseGraphicLayer";
2
9
  import { IGraphicLayerOption } from "../../base/baseOptionType";
3
10
  export declare class DayNightLayer extends baseGraphicLayer {
@@ -1,3 +1,10 @@
1
+ /**
2
+ * @author: xd
3
+ * @Date: 2022-01-13 22:43:45
4
+ * @LastEditors: xd
5
+ * @LastEditTime: 2023-05-08 17:36:58
6
+ * @Description: 功能
7
+ */
1
8
  import { IGraphicLayerOption } from "../../base/baseOptionType";
2
9
  import { baseLayer } from "../../base/baseLayer";
3
10
  import { DivGraphic } from "../../graphic/DivGraphic";
@@ -1,3 +1,10 @@
1
+ /**
2
+ * @author: xd
3
+ * @Date: 2022-01-13 22:43:45
4
+ * @LastEditors: xd
5
+ * @LastEditTime: 2023-06-02 11:00:49
6
+ * @Description: 功能
7
+ */
1
8
  import { baseGraphicLayer } from "../../base/baseGraphicLayer";
2
9
  import { IGraphicLayerOption } from "../../base/baseOptionType";
3
10
  export declare class GraphicImageLayer extends baseGraphicLayer {
@@ -1,7 +1,7 @@
1
- import { Feature } from 'ol';
1
+ import { Feature } from "ol";
2
2
  import { baseGraphicLayer } from "../../base/baseGraphicLayer";
3
3
  import { IGraphicLayerOption } from "../../base/baseOptionType";
4
- import { featureAnimationType } from '../../Enum/typeEnum';
4
+ import { featureAnimationType } from "../../Enum/typeEnum";
5
5
  export declare class GraphicLayer extends baseGraphicLayer {
6
6
  animList: any[];
7
7
  constructor(layerid: any, options?: IGraphicLayerOption);
@@ -1,3 +1,10 @@
1
+ /**
2
+ * @author: xd
3
+ * @Date: 2022-01-13 22:43:45
4
+ * @LastEditors: xd
5
+ * @LastEditTime: 2022-11-26 13:35:14
6
+ * @Description: 功能
7
+ */
1
8
  import { IHeatmapLayerOption } from "src/base/baseOptionType";
2
9
  import { baseGraphicLayer } from "../../base/baseGraphicLayer";
3
10
  export declare class HeatmapLayer extends baseGraphicLayer {