map-ol-utils 0.1.31 → 1.0.0

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/index.d.cts CHANGED
@@ -1,131 +1,211 @@
1
- import { Layer, Tile } from 'ol/layer';
2
- import { Style } from 'ol/style';
3
- import { Map as Map$1, Overlay, Feature } from 'ol';
4
- import { CRSTypes } from 'gcoord';
5
- import * as ol_source from 'ol/source';
6
- import { Source, XYZ, WMTS } from 'ol/source';
7
- import { Coordinate } from 'ol/coordinate';
8
- import { FeatureLike } from 'ol/Feature';
9
- import { Emitter, EventType } from 'mitt';
10
- import TileLayer from 'ol/layer/Tile';
11
- import * as ol_renderer_Layer from 'ol/renderer/Layer';
12
- import { Options } from 'ol/Overlay';
13
- import VectorLayer from 'ol/layer/Vector';
14
- import * as ol_geom from 'ol/geom';
15
- import { SimpleGeometry, Point } from 'ol/geom';
16
- import { FitOptions, AnimationOptions } from 'ol/View';
17
- import { Select } from 'ol/interaction';
18
- import VectorSource from 'ol/source/Vector';
19
- import { StyleLike } from 'ol/style/Style';
20
- import Cluster from 'ol/source/Cluster';
21
-
1
+ import { Layer, Tile } from "ol/layer.js";
2
+ import { Style, Text } from "ol/style.js";
3
+ import { Feature, Map as Map$1, Overlay } from "ol";
4
+ import { CRSTypes } from "gcoord";
5
+ import { Source, WMTS, XYZ } from "ol/source.js";
6
+ import { Coordinate } from "ol/coordinate.js";
7
+ import Feature$1, { FeatureLike } from "ol/Feature.js";
8
+ import { NormalizeStats, RestoreMode, TdtDecoderWorkerClient, TdtDecoderWorkerClientOptions } from "tdt-vts-core";
9
+ import VectorTileLayer from "ol/layer/VectorTile.js";
10
+ import VectorTileSource from "ol/source/VectorTile.js";
11
+ import { Emitter, EventType } from "mitt";
12
+ import TileLayer from "ol/layer/Tile.js";
13
+ import Layer$1 from "ol/layer/Layer.js";
14
+ import VectorImageLayer from "ol/layer/Image.js";
15
+ import RasterSource from "ol/source/Raster.js";
16
+ import { Options } from "ol/Overlay.js";
17
+ import VectorLayer from "ol/layer/Vector.js";
18
+ import { Point, SimpleGeometry } from "ol/geom.js";
19
+ import { AnimationOptions, FitOptions } from "ol/View.js";
20
+ import { Select } from "ol/interaction.js";
21
+ import Geometry, { Type } from "ol/geom/Geometry.js";
22
+ import Draw from "ol/interaction/Draw.js";
23
+ import VectorSource from "ol/source/Vector.js";
24
+ import { FlatStyleLike } from "ol/style/flat.js";
25
+ import { StyleLike } from "ol/style/Style.js";
26
+ import Collection from "ol/Collection.js";
27
+ import Point$1 from "ol/geom/Point.js";
28
+ import Cluster from "ol/source/Cluster.js";
29
+ export * from "tdt-vts-core";
30
+ //#region src/core/types.d.ts
22
31
  interface CustomMap extends Map$1 {
23
- activeBaseLayer?: string;
24
- changeBaseLayer?: () => void;
25
- removeLayerByName?: (name: string) => void;
26
- getLayerByName?: (name: string) => Layer<Source> | undefined;
27
- changeLayersByNames?: (activeNames: Array<string>, allLayerNames: Array<string>) => void;
32
+ activeBaseLayer?: string;
33
+ changeBaseLayer?: () => void;
34
+ removeLayerByName?: (name: string) => void;
35
+ getLayerByName?: (name: string) => Layer<Source> | undefined;
36
+ changeLayersByNames?: (activeNames: Array<string>, allLayerNames: Array<string>) => void;
28
37
  }
29
38
  type GetImgUrl = (name: string, ext?: string) => string;
30
39
  type GetImgUrlFn = (baseUrl: string) => GetImgUrl;
31
40
  type VectorConfig = {
32
- key: string;
33
- zIndex?: number;
34
- isRaw?: boolean;
35
- isLine: boolean;
36
- colorKey?: string;
37
- layerName?: string;
38
- openClick?: boolean;
39
- fillColor?: string;
40
- isAutoFit?: boolean;
41
- crsForm?: CRSTypes;
42
- fillOpacity?: number;
43
- strokeColor?: string;
44
- strokeStyle?: string;
45
- strokeWeight?: number;
46
- needTransform?: boolean;
47
- activeFillColor?: string;
48
- activeStrokeColor?: string;
49
- activeFillOpacity?: number;
50
- activeStrokeWeight?: number;
51
- colorMap?: Map<string, string>;
41
+ key: string;
42
+ zIndex?: number;
43
+ isRaw?: boolean;
44
+ isLine: boolean;
45
+ colorKey?: string;
46
+ layerName?: string;
47
+ openClick?: boolean;
48
+ fillColor?: string;
49
+ isAutoFit?: boolean;
50
+ crsForm?: CRSTypes;
51
+ fillOpacity?: number;
52
+ strokeColor?: string;
53
+ strokeStyle?: string;
54
+ strokeWeight?: number;
55
+ needTransform?: boolean;
56
+ activeFillColor?: string;
57
+ activeStrokeColor?: string;
58
+ activeFillOpacity?: number;
59
+ activeStrokeWeight?: number;
60
+ colorMap?: Map<string, string>;
52
61
  };
53
62
  type ClusterData = {
54
- _uuid: string;
55
- name: string;
56
- style: number;
57
- lnglat: Array<number>;
58
- rawData: {
59
- [key: string]: any;
60
- };
63
+ _uuid: string;
64
+ name: string;
65
+ style: number;
66
+ lnglat: Array<number>;
67
+ rawData: {
68
+ [key: string]: any;
69
+ };
61
70
  };
62
71
  type ClusterConfig = {
63
- distance: number;
64
- layerName?: string;
65
- openClick?: boolean;
66
- minDistance: number;
67
- singleStyles: Style[];
68
- computedRadius?: (size: number) => number;
69
- buildStyle?: (feature: FeatureLike) => Style;
72
+ distance: number;
73
+ layerName?: string;
74
+ openClick?: boolean;
75
+ minDistance: number;
76
+ singleStyles: Style[];
77
+ computedRadius?: (size: number) => number;
78
+ buildStyle?: (feature: FeatureLike) => Style;
70
79
  };
71
80
  type IconConfig = {
72
- baseUrl: string;
73
- hasLine?: boolean;
74
- layerName?: string;
75
- hasFace?: boolean;
76
- statusNum?: number;
77
- isDynamic?: boolean;
78
- markerIcon: string;
79
- activeScale?: number;
80
- isAutoFit?: boolean;
81
- marksStyles?: Style[];
82
- offset?: [number, number];
83
- vectorConfig?: VectorConfig;
84
- markerSize: [number, number];
81
+ baseUrl: string;
82
+ hasLine?: boolean;
83
+ layerName?: string;
84
+ hasFace?: boolean;
85
+ statusNum?: number;
86
+ isDynamic?: boolean;
87
+ markerIcon: string;
88
+ activeScale?: number;
89
+ isAutoFit?: boolean;
90
+ marksStyles?: Style[];
91
+ offset?: [number, number];
92
+ vectorConfig?: VectorConfig;
93
+ markerSize: [number, number];
85
94
  };
86
95
  type MassData = {
87
- _uuid?: string;
88
- id: string;
89
- style: number;
90
- name: string;
91
- status: string;
92
- width?: number;
93
- height?: number;
94
- crsForm?: CRSTypes;
95
- rawData: {
96
- [key: string]: any;
97
- };
98
- lnglat: [string, string] | [number, number];
96
+ _uuid?: string;
97
+ id: string;
98
+ style: number;
99
+ name: string;
100
+ status: string;
101
+ width?: number;
102
+ height?: number;
103
+ crsForm?: CRSTypes;
104
+ rawData: {
105
+ [key: string]: any;
106
+ };
107
+ lnglat: [string, string] | [number, number];
99
108
  };
100
109
  type WmtsSourceOptions = {
101
- style?: string;
102
- format?: string;
103
- version?: string;
104
- layerName: string;
105
- matrixSet?: string;
110
+ style?: string;
111
+ format?: string;
112
+ version?: string;
113
+ layerName: string;
114
+ matrixSet?: string;
106
115
  };
107
116
  declare enum GeometryType {
108
- LineString = "LineString",
109
- MultiLineString = "MultiLineString",
110
- Polygon = "Polygon",
111
- MultiPolygon = "MultiPolygon",
112
- Invalid = "Invalid"
117
+ LineString = "LineString",
118
+ MultiLineString = "MultiLineString",
119
+ Polygon = "Polygon",
120
+ MultiPolygon = "MultiPolygon",
121
+ Invalid = "Invalid"
113
122
  }
114
123
  type GeometryCoordinates = Coordinate[] | Coordinate[][] | Coordinate[][][];
115
124
  type HzsyType = 'hzsyraster' | 'hzsyvector' | 'hzsyvector_dark';
116
125
  type ZheJiangType = 'emap' | 'emap_lab' | 'imgmap' | 'imgmap_lab';
117
126
  type WorldLayerType = 'vec_c' | 'cva_c' | 'img_c' | 'cia_c' | 'ter_c' | 'cta_c' | 'ibo_c';
118
-
127
+ /** 通用图层配置。 */
128
+ type LayerConfig = {
129
+ zIndex?: number;
130
+ visible?: boolean;
131
+ minZoom?: number;
132
+ maxZoom?: number;
133
+ layerName: string;
134
+ };
135
+ /** Marker 数据结构。 */
136
+ type DataItemConfig = {
137
+ lng: string | number;
138
+ lat: string | number;
139
+ img: string | undefined;
140
+ activeImg?: string | undefined;
141
+ text?: string;
142
+ offsetX?: number;
143
+ offsetY?: number;
144
+ scale?: number;
145
+ showText?: boolean;
146
+ anchor?: Array<number>;
147
+ rawData?: any;
148
+ rotation?: number;
149
+ };
150
+ interface ElasticDataItemConfig extends DataItemConfig {
151
+ smallImg: string;
152
+ largeImg: string;
153
+ }
154
+ //#endregion
155
+ //#region src/tdt-vts/source.d.ts
156
+ interface SourceDiagnostics {
157
+ onDecoded?: (stats: NormalizeStats & {
158
+ contentType: string | null;
159
+ cacheControl: string | null;
160
+ }, redactedUrl: string) => void;
161
+ onError?: (error: Error, redactedUrl: string) => void;
162
+ }
163
+ interface CreateTdtSourceOptions {
164
+ token?: string;
165
+ restoreMode: RestoreMode;
166
+ hosts: readonly [string, ...string[]];
167
+ minZoom?: number;
168
+ maxZoom?: number;
169
+ diagnostics?: SourceDiagnostics;
170
+ decoderOptions?: TdtDecoderWorkerClientOptions;
171
+ }
172
+ interface TdtSourceBundle {
173
+ source: VectorTileSource<FeatureLike>;
174
+ decoder: TdtDecoderWorkerClient;
175
+ }
176
+ interface CreateTdtVtsLayerOptions {
177
+ token?: string;
178
+ hosts: readonly [string, ...string[]];
179
+ style: string | TdtVtsStyle;
180
+ }
181
+ interface TdtVtsStyle {
182
+ version: 8;
183
+ sources: Record<string, Record<string, unknown>>;
184
+ layers: Array<{
185
+ id: string;
186
+ type: string;
187
+ layout?: Record<string, unknown>;
188
+ [key: string]: unknown;
189
+ }>;
190
+ [key: string]: unknown;
191
+ }
192
+ declare const createTdtVectorSource: (options: CreateTdtSourceOptions) => TdtSourceBundle;
193
+ declare const createTdtVtsLayer: (options: CreateTdtVtsLayerOptions) => Promise<VectorTileLayer<VectorTileSource<FeatureLike>>>;
194
+ //#endregion
195
+ //#region src/core/emitter.d.ts
119
196
  declare const emitter: Emitter<Record<EventType, any>>;
120
-
197
+ //#endregion
198
+ //#region src/core/helper.d.ts
121
199
  declare const getLayersDataList: () => any[];
122
-
200
+ //#endregion
201
+ //#region src/layer/ogc-utils.d.ts
123
202
  /**
124
203
  * 创建WMTS图层
125
204
  * @param serverUrl
126
205
  */
127
206
  declare const createWmtsLayer: (serverUrl: string) => (config: WmtsSourceOptions) => Promise<TileLayer>;
128
-
207
+ //#endregion
208
+ //#region src/layer/base-layer.d.ts
129
209
  /**
130
210
  * 创建杭州规自地图
131
211
  * @param layerName - 'hzsyraster' | 'hzsyvector' | 'hzsyvector_dark'
@@ -137,6 +217,16 @@ declare const createBaseLayer: (layerName?: HzsyType) => Tile<XYZ>;
137
217
  * @param tk - 天地图TK
138
218
  */
139
219
  declare const createMapWorldLayer: (layerName: WorldLayerType, tk?: string) => Tile<WMTS>;
220
+ /**
221
+ * 创建天地图矢量/影像底图组合。
222
+ * @param tk - 天地图访问令牌
223
+ */
224
+ declare const baseLayers: (tk: string) => {
225
+ baseImgLayer: Tile<XYZ>;
226
+ baseCiaLayer: Tile<XYZ>;
227
+ baseVecLayer: Tile<XYZ>;
228
+ baseCvaLayer: Tile<XYZ>;
229
+ };
140
230
  /**
141
231
  * 浙江省天地图
142
232
  * @param layerName - 图层名称
@@ -147,26 +237,42 @@ declare const createZheJiangLayer: (layerName?: ZheJiangType, tk?: string) => Ti
147
237
  * 根据图层名称获取图层
148
238
  * @param name
149
239
  */
150
- declare const getLayerByName: (name: string) => Layer<ol_source.Source, ol_renderer_Layer.default<any>, {
151
- [x: string]: any;
240
+ declare const getLayerByName: (name: string) => Layer<import("ol/source").Source, import("ol/renderer/Layer").default<any>, {
241
+ [x: string]: any;
152
242
  }> | undefined;
153
243
  /**
154
244
  * 根据图层名称删除图层
155
245
  * @param name
156
246
  */
157
247
  declare const removeLayerByName: (name: string) => void;
158
-
248
+ //#endregion
249
+ //#region src/layer/raster-layer.d.ts
250
+ interface RasterTransformOptions {
251
+ threads?: number;
252
+ }
253
+ /** 使用 RGB 比例和目标颜色转换栅格图层。 */
254
+ declare const changeSource: (layer: Layer$1, rgbColorArray: number[], ratioArray: number[], options?: RasterTransformOptions) => RasterSource;
255
+ /** 使用 changeSource 创建可显示的 VectorImageLayer。 */
256
+ declare const changeLayer: (layer: Layer$1, rgbColorArray: number[], ratioArray: number[], options?: RasterTransformOptions) => VectorImageLayer<RasterSource>;
257
+ //#endregion
258
+ //#region src/core/map-context.d.ts
259
+ /** 当前 OpenLayers 单例。集中存放以避免业务模块之间互相引用。 */
159
260
  declare let instance: CustomMap;
261
+ //#endregion
262
+ //#region src/map/create-map.d.ts
160
263
  declare const createMapInstance: (config?: {}) => CustomMap;
161
264
  declare const createMap: (config?: {}) => CustomMap;
162
265
  declare const disposeMap: () => void;
266
+ /** 兼容别名;复用 map-ol-utils 现有的完整销毁语义。 */
267
+ declare const disposeInstance: () => void;
163
268
  declare const getMapInstance: () => CustomMap;
164
269
  declare const resetZoomAndCenter: (center?: [number, number]) => void;
165
270
  declare const resetMap: (config?: {
166
- center: [number, number];
167
- isClearAll: boolean;
271
+ center: [number, number];
272
+ isClearAll: boolean;
168
273
  }) => void;
169
-
274
+ //#endregion
275
+ //#region src/overlay/overlay.d.ts
170
276
  /**
171
277
  * 移除带指定属性键的 Overlay(默认按 'position')
172
278
  * @param key
@@ -183,7 +289,8 @@ declare const createAnimationMarker: (imgUrl: string, data: MassData) => void;
183
289
  * @param config
184
290
  */
185
291
  declare const createOverlay: (config?: Options) => Overlay;
186
-
292
+ //#endregion
293
+ //#region src/map/view-fit.d.ts
187
294
  /**
188
295
  * 根据 Array<Coordinate> Fit
189
296
  * @param coords
@@ -205,13 +312,65 @@ declare const setFitViewByGeom: (geom: SimpleGeometry, mapInstance?: CustomMap,
205
312
  * @param fitOptions
206
313
  */
207
314
  declare const setFitViewByLayer: (layer: VectorLayer, mapInstance?: CustomMap, fitOptions?: FitOptions) => void;
208
-
315
+ /** 使用两段缩放动画飞到目标位置。 */
316
+ declare const flyToAnimate: (center: Array<any>[number], zoom?: number) => void;
317
+ //#endregion
318
+ //#region src/interaction/select.d.ts
209
319
  /**
210
320
  * 创建点击交互
211
321
  * @param vectorLayer
212
322
  */
213
323
  declare const createSelectByLayer: (vectorLayer: VectorLayer) => Select;
214
-
324
+ /** 按多个 className 创建选择交互。 */
325
+ declare const createLayerSelectByNames: (layerNames: Array<string>, selectedHandler?: (feature: Feature) => void, unSelectHandler?: (feature: Feature) => void) => Select;
326
+ //#endregion
327
+ //#region src/interaction/draw.d.ts
328
+ /** 为绘制中的线和面追加长度/面积标签。 */
329
+ declare const getDrawStyle: (feature: FeatureLike, drawStyle?: Style | undefined) => Style[];
330
+ /** 创建绘制交互。 */
331
+ declare const createDrawInteraction: (type: Type | undefined, vectorLayer: VectorLayer, openTip?: boolean) => Draw;
332
+ //#endregion
333
+ //#region src/layer/geojson-layer.d.ts
334
+ /** 直接从 GeoJSON 创建矢量图层。 */
335
+ declare const createGeoJsonLayer: (geoJson: any, style: StyleLike | FlatStyleLike | null | undefined, config?: LayerConfig) => VectorLayer<VectorSource<import("ol").Feature<import("ol/geom").Geometry, {
336
+ [x: string]: any;
337
+ }>>, import("ol").Feature<import("ol/geom").Geometry, {
338
+ [x: string]: any;
339
+ }>>;
340
+ //#endregion
341
+ //#region src/layer/marker-layer.d.ts
342
+ /** 创建 Marker 文本标注。 */
343
+ declare const createText: (item: DataItemConfig) => Text;
344
+ /** 创建 Marker 默认态或激活态样式。 */
345
+ declare const createIconStyle: (item: DataItemConfig, active?: boolean) => Style;
346
+ /** 创建带 data 属性约定的 Marker Feature。 */
347
+ declare const createMarker: (item: DataItemConfig, config: LayerConfig) => Feature$1<Point$1, {
348
+ [x: string]: any;
349
+ }>;
350
+ /** 批量创建 Marker 矢量图层。 */
351
+ declare const createMarkersLayer: (dataList: Array<DataItemConfig>, config: LayerConfig) => VectorLayer<VectorSource<Feature$1<Geometry, {
352
+ [x: string]: any;
353
+ }>>, Feature$1<Geometry, {
354
+ [x: string]: any;
355
+ }>>;
356
+ /** 清空外部选择集合并恢复 Marker 未选中样式。 */
357
+ declare const changeUnselectStyle: (featureList: Collection<Feature$1>) => void;
358
+ /** 创建随缩放级别切换小图/大图的 Marker 图层。 */
359
+ declare const createElasticMarkerLayer: (dataList: Array<ElasticDataItemConfig>, config: LayerConfig) => VectorLayer<VectorSource<Feature$1<Geometry, {
360
+ [x: string]: any;
361
+ }>>, Feature$1<Geometry, {
362
+ [x: string]: any;
363
+ }>>;
364
+ /** 创建单 Marker 图层并直接加入当前地图实例。 */
365
+ declare const createMoveMarkerLayer: (dataItem: DataItemConfig, config: LayerConfig) => {
366
+ vectorLayer: VectorLayer<VectorSource<Feature$1<Point$1, {
367
+ [x: string]: any;
368
+ }>>, Feature$1<Point$1, {
369
+ [x: string]: any;
370
+ }>>;
371
+ };
372
+ //#endregion
373
+ //#region src/layer/layer-manager.d.ts
215
374
  /**
216
375
  * 重置激活的矢量数据(清空 overlay 与各图层选择交互的要素集合)
217
376
  */
@@ -229,16 +388,17 @@ declare const resetActiveFeature: () => void;
229
388
  * @param uid
230
389
  */
231
390
  declare const activeFeatureByUid: (uid: string) => void;
232
-
391
+ //#endregion
392
+ //#region src/layer/vector-layer.d.ts
233
393
  /**
234
394
  * 创建业务矢量图层(自动推断线/面,生成默认/激活样式)
235
395
  * @param dataList
236
396
  * @param config
237
397
  */
238
- declare const createBusinessLayer: (dataList: MassData[], config: VectorConfig) => VectorLayer<VectorSource<Feature<ol_geom.Geometry, {
239
- [x: string]: any;
240
- }>>, Feature<ol_geom.Geometry, {
241
- [x: string]: any;
398
+ declare const createBusinessLayer: (dataList: MassData[], config: VectorConfig) => VectorLayer<VectorSource<Feature<import("ol/geom").Geometry, {
399
+ [x: string]: any;
400
+ }>>, Feature<import("ol/geom").Geometry, {
401
+ [x: string]: any;
242
402
  }>>;
243
403
  /**
244
404
  * 追加 Features
@@ -252,22 +412,23 @@ declare const appendFeaturesByLayer: (targetLayer: VectorLayer, dataList: MassDa
252
412
  * @param dataList
253
413
  * @param config
254
414
  */
255
- declare const createVectorFaceLayer: (dataList: MassData[] | undefined, config: VectorConfig) => VectorLayer<VectorSource<Feature<ol_geom.Geometry, {
256
- [x: string]: any;
257
- }>>, Feature<ol_geom.Geometry, {
258
- [x: string]: any;
415
+ declare const createVectorFaceLayer: (dataList: MassData[] | undefined, config: VectorConfig) => VectorLayer<VectorSource<Feature<import("ol/geom").Geometry, {
416
+ [x: string]: any;
417
+ }>>, Feature<import("ol/geom").Geometry, {
418
+ [x: string]: any;
259
419
  }>>;
260
420
  /**
261
421
  * 创建矢量线图层
262
422
  * @param dataList
263
423
  * @param config
264
424
  */
265
- declare const createVectorLineLayer: (dataList: MassData[] | undefined, config: VectorConfig) => VectorLayer<VectorSource<Feature<ol_geom.Geometry, {
266
- [x: string]: any;
267
- }>>, Feature<ol_geom.Geometry, {
268
- [x: string]: any;
425
+ declare const createVectorLineLayer: (dataList: MassData[] | undefined, config: VectorConfig) => VectorLayer<VectorSource<Feature<import("ol/geom").Geometry, {
426
+ [x: string]: any;
427
+ }>>, Feature<import("ol/geom").Geometry, {
428
+ [x: string]: any;
269
429
  }>>;
270
-
430
+ //#endregion
431
+ //#region src/layer/mass-marks.d.ts
271
432
  /**
272
433
  * 构建 MassMarks 样式数组(默认段 + 激活段,长度 statusNum * 2)
273
434
  */
@@ -278,8 +439,8 @@ declare const buildMassMarksStyles: (getImgUrlFn: GetImgUrlFn) => (iconConfig: I
278
439
  * @param dataList
279
440
  * @param config
280
441
  */
281
- declare const addFeaturesByLayer: (targetLayer: VectorLayer, dataList: MassData[], config: {
282
- clear?: boolean;
442
+ declare const addFeaturesByLayer: (targetLayer: VectorLayer, dataList: MassData[], config?: {
443
+ clear?: boolean;
283
444
  }) => void;
284
445
  /**
285
446
  * 创建 massMarksLayer
@@ -287,34 +448,35 @@ declare const addFeaturesByLayer: (targetLayer: VectorLayer, dataList: MassData[
287
448
  * @param styleList
288
449
  */
289
450
  declare const createMassMarksLayer: (dataList: MassData[], styleList?: StyleLike[]) => VectorLayer<VectorSource<Feature<Point, {
290
- [x: string]: any;
451
+ [x: string]: any;
291
452
  }>>, Feature<Point, {
292
- [x: string]: any;
453
+ [x: string]: any;
293
454
  }>>;
294
455
  /**
295
456
  * 添加 massMarksLayer(按需附带线/面图层)
296
457
  * @param getImgUrlFn
297
458
  */
298
459
  declare const addMassMarksLayer: (getImgUrlFn: GetImgUrlFn) => (dataList: never[] | undefined, iconConfig: IconConfig, openClick?: boolean) => VectorLayer<VectorSource<Feature<Point, {
299
- [x: string]: any;
460
+ [x: string]: any;
300
461
  }>>, Feature<Point, {
301
- [x: string]: any;
462
+ [x: string]: any;
302
463
  }>>;
303
464
  /**
304
465
  * 按选中状态列表更新海量点显隐
305
466
  * @param checkedStatusList
306
467
  */
307
468
  declare const updateMarksLayersByStatus: (checkedStatusList?: string[]) => MassData[];
308
-
469
+ //#endregion
470
+ //#region src/layer/cluster-layer.d.ts
309
471
  /**
310
472
  * 创建聚合图层(半径/颜色随聚合数量动态计算)
311
473
  * @param dataList
312
474
  * @param config
313
475
  */
314
476
  declare const createClusterLayer: (dataList: ClusterData[], config: ClusterConfig) => VectorLayer<Cluster<Feature<Point, {
315
- [x: string]: any;
316
- }>>, Feature<ol_geom.Geometry, {
317
- [x: string]: any;
477
+ [x: string]: any;
478
+ }>>, Feature<import("ol/geom").Geometry, {
479
+ [x: string]: any;
318
480
  }>>;
319
-
320
- export { type ClusterConfig, type ClusterData, type CustomMap, type GeometryCoordinates, GeometryType, type GetImgUrl, type GetImgUrlFn, type HzsyType, type IconConfig, type MassData, type VectorConfig, type WmtsSourceOptions, type WorldLayerType, type ZheJiangType, activeFeatureByUid, addFeaturesByLayer, addMassMarksLayer, appendFeaturesByLayer, buildMassMarksStyles, createAnimationMarker, createBaseLayer, createBusinessLayer, createClusterLayer, createMap, createMapInstance, createMapWorldLayer, createMassMarksLayer, createOverlay, createSelectByLayer, createVectorFaceLayer, createVectorLineLayer, createWmtsLayer, createZheJiangLayer, disposeMap, emitter, getLayerByName, getLayersDataList, getMapInstance, instance, removeAllLayers, removeLayerByName, removeOverlays, resetActiveFeature, resetActiveVector, resetMap, resetZoomAndCenter, setFitViewByCoords, setFitViewByGeom, setFitViewByLayer, updateMarksLayersByStatus };
481
+ //#endregion
482
+ export { ClusterConfig, ClusterData, type CreateTdtSourceOptions, type CreateTdtVtsLayerOptions, CustomMap, DataItemConfig, ElasticDataItemConfig, GeometryCoordinates, GeometryType, GetImgUrl, GetImgUrlFn, HzsyType, IconConfig, LayerConfig, MassData, type SourceDiagnostics, type TdtSourceBundle, type TdtVtsStyle, VectorConfig, WmtsSourceOptions, WorldLayerType, ZheJiangType, activeFeatureByUid, addFeaturesByLayer, addMassMarksLayer, appendFeaturesByLayer, baseLayers, buildMassMarksStyles, changeLayer, changeSource, changeUnselectStyle, createAnimationMarker, createBaseLayer, createBusinessLayer, createClusterLayer, createDrawInteraction, createElasticMarkerLayer, createGeoJsonLayer, createIconStyle, createLayerSelectByNames, createMap, createMapInstance, createMapWorldLayer, createMarker, createMarkersLayer, createMassMarksLayer, createMoveMarkerLayer, createOverlay, createSelectByLayer, createTdtVectorSource, createTdtVtsLayer, createText, createVectorFaceLayer, createVectorLineLayer, createWmtsLayer, createZheJiangLayer, disposeInstance, disposeMap, emitter, flyToAnimate, getDrawStyle, getLayerByName, getLayersDataList, getMapInstance, instance, removeAllLayers, removeLayerByName, removeOverlays, resetActiveFeature, resetActiveVector, resetMap, resetZoomAndCenter, setFitViewByCoords, setFitViewByGeom, setFitViewByLayer, updateMarksLayersByStatus };