@gis_victory/gismap 2.0.25 → 2.0.26

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 (110) hide show
  1. package/dist/gismap.css +1 -1
  2. package/dist/index.d.ts +153 -39
  3. package/dist/index.es.js +1 -1
  4. package/dist/index.umd.js +1 -0
  5. package/package.json +1 -1
  6. package/dist/App.vue.d.ts +0 -2
  7. package/dist/adapters/index.d.ts +0 -13
  8. package/dist/adapters/mapbox/MapboxAdapter.d.ts +0 -44
  9. package/dist/adapters/types.d.ts +0 -216
  10. package/dist/api/BaseController.d.ts +0 -6
  11. package/dist/api/CommonController.d.ts +0 -51
  12. package/dist/components/MapCompass/index.vue.d.ts +0 -2
  13. package/dist/components/MapContainer/index.d.ts +0 -2
  14. package/dist/components/MapContainer/index.vue.d.ts +0 -344
  15. package/dist/components/MapLayer/components/CustomLayerDialog.vue.d.ts +0 -22
  16. package/dist/components/MapLayer/components/LayerTab.vue.d.ts +0 -2179
  17. package/dist/components/MapLayer/index.d.ts +0 -2
  18. package/dist/components/MapLayer/index.vue.d.ts +0 -2287
  19. package/dist/components/MapLegend/index.d.ts +0 -2
  20. package/dist/components/MapLegend/index.vue.d.ts +0 -14
  21. package/dist/components/MapMeasure/index.vue.d.ts +0 -2
  22. package/dist/components/MapPrint/MapPrintPanel.vue.d.ts +0 -21
  23. package/dist/components/MapPrint/MapPrintService.d.ts +0 -155
  24. package/dist/components/MapPrint/index.vue.d.ts +0 -37
  25. package/dist/components/MapQueryResult/index.vue.d.ts +0 -29
  26. package/dist/components/MapQueryResult/popup.vue.d.ts +0 -16
  27. package/dist/components/MapSearch/index.d.ts +0 -2
  28. package/dist/components/MapSearch/index.vue.d.ts +0 -56
  29. package/dist/components/MapSwitch/index.d.ts +0 -2
  30. package/dist/components/MapSwitch/index.vue.d.ts +0 -37
  31. package/dist/components/MapTools/index.d.ts +0 -2
  32. package/dist/components/MapTools/index.vue.d.ts +0 -40
  33. package/dist/components/MobileMapLayer/BaseLayerSwitch.vue.d.ts +0 -16
  34. package/dist/components/MobileMapLayer/index.vue.d.ts +0 -9
  35. package/dist/components/Widgets/PopupBar/BarItem.vue.d.ts +0 -75
  36. package/dist/components/Widgets/PopupBar/index.vue.d.ts +0 -21
  37. package/dist/composables/index.d.ts +0 -13
  38. package/dist/composables/useControl.d.ts +0 -39
  39. package/dist/composables/useDraw.d.ts +0 -49
  40. package/dist/composables/useLayer.d.ts +0 -57
  41. package/dist/composables/useMap.d.ts +0 -111
  42. package/dist/composables/useMarker.d.ts +0 -55
  43. package/dist/composables/useMeasure.d.ts +0 -49
  44. package/dist/composables/useSearch.d.ts +0 -20
  45. package/dist/config/api.config.d.ts +0 -40
  46. package/dist/config/gismap.config.d.ts +0 -156
  47. package/dist/core/ManagerRegistry.d.ts +0 -75
  48. package/dist/core/PluginSystem.d.ts +0 -71
  49. package/dist/core/StateStore.d.ts +0 -96
  50. package/dist/core/TypedEventEmitter.d.ts +0 -67
  51. package/dist/core/di/Container.d.ts +0 -61
  52. package/dist/core/di/decorators.d.ts +0 -32
  53. package/dist/core/di/index.d.ts +0 -7
  54. package/dist/core/di/types.d.ts +0 -59
  55. package/dist/core/event/EventBus.d.ts +0 -101
  56. package/dist/core/event/index.d.ts +0 -5
  57. package/dist/core/event/types.d.ts +0 -215
  58. package/dist/core/index.d.ts +0 -6
  59. package/dist/core/state/Store.d.ts +0 -145
  60. package/dist/core/state/index.d.ts +0 -6
  61. package/dist/core/state/types.d.ts +0 -134
  62. package/dist/domain/index.d.ts +0 -8
  63. package/dist/domain/layer/LayerEntity.d.ts +0 -90
  64. package/dist/domain/layer/LayerService.d.ts +0 -128
  65. package/dist/domain/marker/MarkerEntity.d.ts +0 -77
  66. package/dist/domain/marker/MarkerService.d.ts +0 -105
  67. package/dist/domain/types.d.ts +0 -66
  68. package/dist/examples/DrawDemo.vue.d.ts +0 -2
  69. package/dist/examples/DrawPanel.vue.d.ts +0 -2
  70. package/dist/examples/Map.vue.d.ts +0 -74
  71. package/dist/examples/MapDemoExample.vue.d.ts +0 -2
  72. package/dist/examples/MeasureDemo.vue.d.ts +0 -2
  73. package/dist/examples/MeasurePanel.vue.d.ts +0 -2
  74. package/dist/examples/SplitScreenDrawDemo.vue.d.ts +0 -7
  75. package/dist/examples/SplitScreenDrawPanel.vue.d.ts +0 -12
  76. package/dist/examples/SplitScreenPanel.vue.d.ts +0 -12
  77. package/dist/examples/TdtControlPanel.vue.d.ts +0 -2
  78. package/dist/examples/TiandituDemo.vue.d.ts +0 -2
  79. package/dist/main.d.ts +0 -0
  80. package/dist/manager/IconManager.d.ts +0 -18
  81. package/dist/manager/LayerManager.d.ts +0 -50
  82. package/dist/manager/MaskManager.d.ts +0 -52
  83. package/dist/manager/PlaceholderManager.d.ts +0 -28
  84. package/dist/manager/PopupManager.d.ts +0 -13
  85. package/dist/manager/QuickSearchManager.d.ts +0 -24
  86. package/dist/manager/RadarManager.d.ts +0 -46
  87. package/dist/manager/SplitScreenDrawManager.d.ts +0 -75
  88. package/dist/manager/SplitScreenManager.d.ts +0 -81
  89. package/dist/manager/TDTManager.d.ts +0 -33
  90. package/dist/manager/TemplateManager.d.ts +0 -52
  91. package/dist/manager/TerrainManager.d.ts +0 -39
  92. package/dist/manager/layer/MarkerLayer.d.ts +0 -89
  93. package/dist/manager/layer/VectorLayer.d.ts +0 -30
  94. package/dist/manager/mapbox/DrawManager.d.ts +0 -153
  95. package/dist/manager/mapbox/MeasureManager.d.ts +0 -158
  96. package/dist/router/index.d.ts +0 -2
  97. package/dist/services/MapContext.d.ts +0 -171
  98. package/dist/services/index.d.ts +0 -5
  99. package/dist/types/IEvents.d.ts +0 -178
  100. package/dist/types/IGISMap.d.ts +0 -234
  101. package/dist/types/IManager.d.ts +0 -113
  102. package/dist/types/IMapSearch.d.ts +0 -28
  103. package/dist/types/IState.d.ts +0 -259
  104. package/dist/types/ITemplate.d.ts +0 -35
  105. package/dist/types/index.d.ts +0 -7
  106. package/dist/utils/hooks/layout.d.ts +0 -4
  107. package/dist/utils/http/axios.d.ts +0 -3
  108. package/dist/utils/http/config.d.ts +0 -3
  109. package/dist/utils/http/request.d.ts +0 -46
  110. package/dist/utils/index.d.ts +0 -49
@@ -1,66 +0,0 @@
1
- import { LngLat } from '@gis_victory/mapbox-gl';
2
- /** 唯一标识 */
3
- export type EntityId = string;
4
- /** 地理坐标 */
5
- export interface GeoCoordinate {
6
- lng: number;
7
- lat: number;
8
- }
9
- /** 地理边界 */
10
- export interface GeoBounds {
11
- sw: GeoCoordinate;
12
- ne: GeoCoordinate;
13
- }
14
- /** 实体基类接口 */
15
- export interface IEntity {
16
- readonly id: EntityId;
17
- toJSON(): Record<string, any>;
18
- }
19
- /** 可销毁的实体 */
20
- export interface IDisposable {
21
- dispose(): void;
22
- }
23
- /** 可启用的实体 */
24
- export interface IEnableable {
25
- enabled: boolean;
26
- enable(): void;
27
- disable(): void;
28
- }
29
- /** 可见的实体 */
30
- export interface IVisible {
31
- visible: boolean;
32
- show(): void;
33
- hide(): void;
34
- }
35
- /** 可配置的实体 */
36
- export interface IConfigurable<T> {
37
- config: T;
38
- updateConfig(config: Partial<T>): void;
39
- }
40
- /** 领域事件 */
41
- export interface DomainEvent<T = any> {
42
- type: string;
43
- payload: T;
44
- timestamp: number;
45
- source?: string;
46
- }
47
- /** 领域服务接口 */
48
- export interface IDomainService {
49
- initialize(): void;
50
- dispose(): void;
51
- }
52
- /** 仓储接口 */
53
- export interface IRepository<T extends IEntity> {
54
- findById(id: EntityId): T | undefined;
55
- findAll(): T[];
56
- save(entity: T): void;
57
- delete(id: EntityId): void;
58
- exists(id: EntityId): boolean;
59
- clear(): void;
60
- }
61
- /** 坐标转换工具 */
62
- export declare function toGeoCoordinate(lngLat: LngLat): GeoCoordinate;
63
- /** 转换为 LngLat */
64
- export declare function toLngLat(coord: GeoCoordinate): LngLat;
65
- /** 生成唯一ID */
66
- export declare function generateId(prefix?: string): string;
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
- export default _default;
@@ -1,74 +0,0 @@
1
- import { MapContext } from '../services/MapContext';
2
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
3
- mapViewData: {
4
- type: ObjectConstructor;
5
- default: () => {
6
- center: [number, number];
7
- };
8
- };
9
- switchData: {
10
- type: ObjectConstructor;
11
- default: () => {};
12
- };
13
- layerData: {
14
- type: ArrayConstructor;
15
- default: () => never[];
16
- };
17
- toolsData: {
18
- type: ArrayConstructor;
19
- default: () => never[];
20
- };
21
- searchData: {
22
- type: ArrayConstructor;
23
- default: () => never[];
24
- };
25
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
26
- load: (context: MapContext) => any;
27
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
28
- mapViewData: {
29
- type: ObjectConstructor;
30
- default: () => {
31
- center: [number, number];
32
- };
33
- };
34
- switchData: {
35
- type: ObjectConstructor;
36
- default: () => {};
37
- };
38
- layerData: {
39
- type: ArrayConstructor;
40
- default: () => never[];
41
- };
42
- toolsData: {
43
- type: ArrayConstructor;
44
- default: () => never[];
45
- };
46
- searchData: {
47
- type: ArrayConstructor;
48
- default: () => never[];
49
- };
50
- }>> & Readonly<{
51
- onLoad?: ((context: MapContext) => any) | undefined;
52
- }>, {
53
- mapViewData: Record<string, any>;
54
- switchData: Record<string, any>;
55
- layerData: unknown[];
56
- toolsData: unknown[];
57
- searchData: unknown[];
58
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>, {
59
- 'pre-top-left'?(_: {}): any;
60
- 'top-left'?(_: {}): any;
61
- 'pre-top-right'?(_: {}): any;
62
- 'top-right'?(_: {}): any;
63
- 'pre-bottom-left'?(_: {}): any;
64
- 'bottom-left'?(_: {}): any;
65
- 'pre-bottom-right'?(_: {}): any;
66
- 'bottom-right'?(_: {}): any;
67
- default?(_: {}): any;
68
- }>;
69
- export default _default;
70
- type __VLS_WithTemplateSlots<T, S> = T & {
71
- new (): {
72
- $slots: S;
73
- };
74
- };
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
- export default _default;
@@ -1,7 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
2
- mapContainerRef: HTMLDivElement;
3
- leftMapLayerRef: HTMLDivElement;
4
- rightMapLayerRef: HTMLDivElement;
5
- dividerRef: HTMLDivElement;
6
- }, HTMLDivElement>;
7
- export default _default;
@@ -1,12 +0,0 @@
1
- type __VLS_Props = {
2
- isActive: boolean;
3
- splitPercent: number;
4
- };
5
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
- "toggle-split-screen": () => any;
7
- "update-split-percent": (percent: number) => any;
8
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
9
- "onToggle-split-screen"?: (() => any) | undefined;
10
- "onUpdate-split-percent"?: ((percent: number) => any) | undefined;
11
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
12
- export default _default;
@@ -1,12 +0,0 @@
1
- type __VLS_Props = {
2
- isActive: boolean;
3
- direction: 'horizontal' | 'vertical';
4
- };
5
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
- "toggle-split-screen": () => any;
7
- "update-direction": (direction: "horizontal" | "vertical") => any;
8
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
9
- "onToggle-split-screen"?: (() => any) | undefined;
10
- "onUpdate-direction"?: ((direction: "horizontal" | "vertical") => any) | undefined;
11
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
12
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
- export default _default;
package/dist/main.d.ts DELETED
File without changes
@@ -1,18 +0,0 @@
1
- import { VectorTileAdapter } from '../adapters/types';
2
- /** 图标配置 */
3
- export interface IconConfig {
4
- /** 图标 ID(对应 layout.icon-image) */
5
- name: string;
6
- /** 图标图片 URL */
7
- url: string;
8
- }
9
- export default class IconManager {
10
- private adapter;
11
- constructor(adapter: VectorTileAdapter);
12
- /**
13
- * 批量加载图标
14
- * @param icons 图标配置数组
15
- */
16
- load(icons: IconConfig[]): Promise<void>;
17
- private _loadImage;
18
- }
@@ -1,50 +0,0 @@
1
- import { VectorTileAdapter } from '../adapters/types';
2
- import { BaseManager } from '../types/IManager';
3
- import { IEventBus, CoreMapEvents } from '../core/event';
4
- /**
5
- * 图层管理器
6
- * 管理地图图层的添加、移除和查询
7
- */
8
- export default class LayerManager extends BaseManager {
9
- private adapter;
10
- private eventBus?;
11
- private checkedParentLayers;
12
- private checkedLayers;
13
- queryLayerIds: string[];
14
- private symbolLayerIds;
15
- private pointLayerIds;
16
- private lineLayerIds;
17
- private polygonLayerIds;
18
- constructor(adapter: VectorTileAdapter, eventBus?: IEventBus<CoreMapEvents>);
19
- /**
20
- * 初始化管理器
21
- */
22
- protected onInitialize(): void;
23
- /**
24
- * 销毁管理器
25
- */
26
- protected onDispose(): void;
27
- /**
28
- * 启用管理器
29
- */
30
- protected onEnable(): void;
31
- /**
32
- * 禁用管理器
33
- */
34
- protected onDisable(): void;
35
- /**
36
- * 重置管理器状态
37
- */
38
- protected onReset(): void;
39
- /**
40
- * 清理所有图层
41
- */
42
- private clearAllLayers;
43
- addSource(source: any): void;
44
- addLayer(layerConfig: any, beforeLayerId?: string): this;
45
- addGroupLayer(layer: any): void;
46
- removeLayer(layer: any): void;
47
- removeGroupLayer(layer: any): void;
48
- getCheckedLayers(): any[];
49
- getLayer(id: string): any;
50
- }
@@ -1,52 +0,0 @@
1
- import { VectorTileAdapter } from '../adapters/types';
2
- /**
3
- * 遮罩管理器配置
4
- */
5
- export interface MaskOptions {
6
- /** 遮罩图层ID */
7
- layerId?: string;
8
- /** 数据源URL或GeoJSON数据 */
9
- data: string | any;
10
- /** 样式配置 */
11
- style?: any;
12
- /** 插入到指定图层之前 */
13
- beforeId?: string;
14
- }
15
- export default class MaskManager {
16
- private adapter;
17
- private layerId;
18
- private lineLayerId;
19
- constructor(adapter: VectorTileAdapter, layerId?: string);
20
- /**
21
- * 添加遮罩图层
22
- * @param options 遮罩配置
23
- */
24
- add(options: MaskOptions): this;
25
- /**
26
- * 添加遮罩边界线
27
- * @param style 样式配置
28
- */
29
- addLine(style?: any): void;
30
- /**
31
- * 移除遮罩
32
- */
33
- remove(): void;
34
- /**
35
- * 更新遮罩数据
36
- * @param data 新的GeoJSON数据
37
- */
38
- updateData(data: any): void;
39
- /**
40
- * 设置遮罩可见性
41
- * @param visible 是否可见
42
- */
43
- setVisible(visible: boolean): void;
44
- /**
45
- * 获取遮罩图层ID
46
- */
47
- getLayerId(): string;
48
- /**
49
- * 获取遮罩边界线图层ID
50
- */
51
- getLineLayerId(): string;
52
- }
@@ -1,28 +0,0 @@
1
- import { VectorTileAdapter } from '../adapters/types';
2
- /** 占位符图层 ID 常量(供外部引用) */
3
- export default class PlaceholderManager {
4
- /** 符号图层(Symbol)占位符 ID */
5
- static readonly symbolPointId = "gismap_placeholder_symbol_point";
6
- /** 点图层(Circle)占位符 ID */
7
- static readonly layerPointId = "gismap_placeholder_layer_point";
8
- /** 线图层(Line)占位符 ID */
9
- static readonly layerLineId = "gismap_placeholder_layer_line";
10
- /** 面图层(Fill)占位符 ID */
11
- static readonly layerPolygonId = "gismap_placeholder_layer_polygon";
12
- /** 遮罩图层(Mask)占位符 ID */
13
- static readonly maskLayerId = "gismap_placeholder_mask_layer";
14
- private adapter;
15
- /** 占位符专用空 GeoJSON Source ID */
16
- private readonly sourceId;
17
- constructor(adapter: VectorTileAdapter);
18
- /**
19
- * 初始化所有占位符图层(点、线、面、符号、遮罩)。
20
- * 应在地图加载完成后、业务图层添加之前调用一次。
21
- */
22
- addLayer(options?: {
23
- beforeLayerPointId?: string;
24
- beforeLayerLineId?: string;
25
- beforeLayerFillId?: string;
26
- beforeMaskLayerId?: string;
27
- }): void;
28
- }
@@ -1,13 +0,0 @@
1
- export default class PopupManager {
2
- private map;
3
- private popups;
4
- constructor(map: any);
5
- show(options: {
6
- position: [number, number];
7
- offset?: [number, number];
8
- html: string;
9
- flyTo?: boolean;
10
- }): string;
11
- hide(id: string): void;
12
- clear(): void;
13
- }
@@ -1,24 +0,0 @@
1
- export default class QuickSearchManager {
2
- private map;
3
- private markers;
4
- private selectMarker;
5
- private popup;
6
- private callback;
7
- private templateManager;
8
- private popupManager;
9
- constructor(map: any);
10
- addFunction(callback: any): void;
11
- add(options: {
12
- uuid: string;
13
- templateId: string;
14
- geometry: any;
15
- index: number;
16
- properties: any;
17
- }): void;
18
- addGroup(options: {
19
- data: any[];
20
- }): void;
21
- flyTo(uuid: string): void;
22
- addPopup(): void;
23
- clear(): void;
24
- }
@@ -1,46 +0,0 @@
1
- import { VectorTileAdapter } from '../adapters/types';
2
- /**
3
- * 雷达配置选项
4
- */
5
- export interface RadarOptions {
6
- /** 雷达中心点 [lng, lat] */
7
- center: [number, number];
8
- /** 雷达半径(米),默认 100 */
9
- radius?: number;
10
- /** 扫描一圈时间(毫秒),默认 3000 */
11
- period?: number;
12
- /** 背景颜色,默认 "rgba(255,0,0,0.1)" */
13
- backgroundColor?: string;
14
- /** 边框颜色,默认 "rgba(255,0,0,0.8)" */
15
- borderColor?: string;
16
- /** 边框宽度,默认 2 */
17
- borderWidth?: number;
18
- /** 扇形是否可见,默认 false */
19
- sectorVisible?: boolean;
20
- /** 扫描扇形角度(度),默认 30 */
21
- sectorAngle?: number;
22
- /** 扇形颜色,默认 "rgba(0,255,0,0.4)" */
23
- sectorColor?: string;
24
- /** 扇形边框颜色,默认 "rgba(0,0,255,0.8)" */
25
- sectorBorderColor?: string;
26
- }
27
- export default class RadarManager {
28
- private adapter?;
29
- private id;
30
- private radius;
31
- private period;
32
- private backgroundColor;
33
- private borderColor;
34
- private borderWidth;
35
- private sectorVisible;
36
- private sectorAngle;
37
- private sectorColor;
38
- private sectorBorderColor;
39
- private center;
40
- private animationId;
41
- constructor(adapter?: VectorTileAdapter);
42
- add(options: RadarOptions): this;
43
- startScan(): this;
44
- stopScan(): this;
45
- remove(): void;
46
- }
@@ -1,75 +0,0 @@
1
- import { MapContext } from '../services/MapContext';
2
- /**
3
- * 拉框对比管理器
4
- * 用于实现两个叠在一起的地图通过拖动分割线进行对比的功能
5
- */
6
- export declare class SplitScreenDrawManager {
7
- private leftMapContext;
8
- private rightMapContext;
9
- private isDragging;
10
- private dividerElement;
11
- private containerElement;
12
- private direction;
13
- private initialPosition;
14
- private initialMousePosition;
15
- /**
16
- * 初始化拉框对比管理器
17
- * @param leftMapContext 左侧地图上下文
18
- * @param rightMapContext 右侧地图上下文
19
- * @param containerElement 容器元素
20
- * @param dividerElement 分割线元素
21
- */
22
- initialize(leftMapContext: MapContext, rightMapContext: MapContext, containerElement: HTMLElement, dividerElement: HTMLElement): void;
23
- /**
24
- * 设置事件监听器
25
- */
26
- private setupEventListeners;
27
- /**
28
- * 处理分割线鼠标按下事件
29
- * @param event 鼠标事件
30
- */
31
- private handleDividerMouseDown;
32
- /**
33
- * 处理文档鼠标移动事件
34
- * @param event 鼠标事件
35
- */
36
- private handleDocumentMouseMove;
37
- /**
38
- * 处理文档鼠标释放事件
39
- * @param event 鼠标事件
40
- */
41
- private handleDocumentMouseUp;
42
- /**
43
- * 更新分割线位置
44
- * @param position 新位置
45
- */
46
- private updateDividerPosition;
47
- /**
48
- * 更新地图显示范围
49
- * @param position 分割线位置
50
- */
51
- private updateMapVisibility;
52
- /**
53
- * 设置地图同步
54
- */
55
- private setupMapSync;
56
- /**
57
- * 同步地图视图
58
- * @param sourceMap 源地图
59
- * @param targetMap 目标地图
60
- */
61
- private syncMapView;
62
- /**
63
- * 设置分割方向
64
- * @param newDirection 新的分割方向
65
- */
66
- setDirection(newDirection: 'horizontal' | 'vertical'): void;
67
- /**
68
- * 重置分割线位置到中心
69
- */
70
- resetDividerPosition(): void;
71
- /**
72
- * 销毁拉框对比管理器
73
- */
74
- destroy(): void;
75
- }
@@ -1,81 +0,0 @@
1
- /**
2
- * 双屏对比管理器
3
- * 用于实现地图的双屏对比功能 - 天地图版本
4
- */
5
- export interface SplitScreenOptions {
6
- /** 分割方向:horizontal 或 vertical */
7
- direction?: 'horizontal' | 'vertical';
8
- /** 分割比例:0-1之间的值,表示左侧/上侧占比 */
9
- ratio?: number;
10
- /** 天地图 Token */
11
- tdtToken?: string;
12
- }
13
- export default class SplitScreenManager {
14
- private map;
15
- private options;
16
- private isActive;
17
- private splitElement;
18
- private leftMapContainer;
19
- private rightMapContainer;
20
- private leftMap;
21
- private rightMap;
22
- constructor(map: any, options?: SplitScreenOptions);
23
- /**
24
- * 开启双屏对比
25
- */
26
- startSplitScreen(): void;
27
- /**
28
- * 关闭双屏对比
29
- */
30
- stopSplitScreen(): void;
31
- /**
32
- * 更新分割比例
33
- * @param ratio 分割比例:0-1之间的值
34
- */
35
- updateRatio(ratio: number): void;
36
- /**
37
- * 更新分割方向
38
- * @param direction 分割方向:horizontal 或 vertical
39
- */
40
- updateDirection(direction: 'horizontal' | 'vertical'): void;
41
- /**
42
- * 获取当前状态
43
- */
44
- getIsActive(): boolean;
45
- /**
46
- * 创建分割容器
47
- */
48
- private createSplitContainer;
49
- /**
50
- * 创建左侧地图(矢量地图)
51
- */
52
- private createLeftMap;
53
- /**
54
- * 创建右侧地图(影像地图)
55
- */
56
- private createRightMap;
57
- /**
58
- * 添加天地图矢量图层
59
- */
60
- private addTdtVecLayer;
61
- /**
62
- * 添加天地图影像图层
63
- */
64
- private addTdtImgLayer;
65
- /**
66
- * 添加天地图注记图层
67
- */
68
- private addTdtCiaLayer;
69
- /**
70
- * 同步两个地图的视图
71
- */
72
- private syncMapViews;
73
- /**
74
- * 更新分割样式
75
- */
76
- private updateSplitStyle;
77
- /**
78
- * 销毁管理器
79
- */
80
- destroy(): void;
81
- }
@@ -1,33 +0,0 @@
1
- import { VectorTileAdapter } from '../adapters/types';
2
- /** 天地图图层 ID 常量 */
3
- export declare const TDT_LAYER_IDS: {
4
- readonly img: "tdt-img";
5
- readonly vec: "tdt-vec";
6
- readonly cia: "tdt-cia";
7
- };
8
- export default class TDTManager {
9
- private adapter;
10
- private token;
11
- /** 各图层对应的 Source 配置 */
12
- private layerSources;
13
- constructor(adapter: VectorTileAdapter, token?: string);
14
- private addTdtLayer;
15
- private removeTdtLayer;
16
- /** 添加天地图影像底图(+ 注记) */
17
- addImgLayer(sourceConfig?: any, beforeId?: string): void;
18
- removeImgLayer(): void;
19
- /** 添加天地图矢量底图 */
20
- addVecLayer(sourceConfig?: any, beforeId?: string): void;
21
- removeVecLayer(): void;
22
- /** 添加天地图注记图层 */
23
- addCiaLayer(sourceConfig?: any, beforeId?: string): void;
24
- removeCiaLayer(): void;
25
- /** 移除所有天地图图层 */
26
- clear(): void;
27
- /** 显示天地图(恢复可见性) */
28
- show(): void;
29
- /** 隐藏天地图(保留图层,仅隐藏) */
30
- hideAll(): void;
31
- /** 隐藏指定的天地图图层 */
32
- hide(layerId: string): void;
33
- }