@gis_victory/gismap 2.0.23 → 2.0.25
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/App.vue.d.ts +2 -0
- package/dist/adapters/index.d.ts +13 -0
- package/dist/adapters/mapbox/MapboxAdapter.d.ts +44 -0
- package/dist/adapters/types.d.ts +216 -0
- package/dist/api/BaseController.d.ts +6 -0
- package/dist/api/CommonController.d.ts +51 -0
- package/dist/components/MapCompass/index.vue.d.ts +2 -0
- package/dist/components/MapContainer/index.d.ts +2 -0
- package/dist/components/MapContainer/index.vue.d.ts +344 -0
- package/dist/components/MapLayer/components/CustomLayerDialog.vue.d.ts +22 -0
- package/dist/components/MapLayer/components/LayerTab.vue.d.ts +2179 -0
- package/dist/components/MapLayer/index.d.ts +2 -0
- package/dist/components/MapLayer/index.vue.d.ts +2287 -0
- package/dist/components/MapLegend/index.d.ts +2 -0
- package/dist/components/MapLegend/index.vue.d.ts +14 -0
- package/dist/components/MapMeasure/index.vue.d.ts +2 -0
- package/dist/components/MapPrint/MapPrintPanel.vue.d.ts +21 -0
- package/dist/components/MapPrint/MapPrintService.d.ts +155 -0
- package/dist/components/MapPrint/index.vue.d.ts +37 -0
- package/dist/components/MapQueryResult/index.vue.d.ts +29 -0
- package/dist/components/MapQueryResult/popup.vue.d.ts +16 -0
- package/dist/components/MapSearch/index.d.ts +2 -0
- package/dist/components/MapSearch/index.vue.d.ts +56 -0
- package/dist/components/MapSwitch/index.d.ts +2 -0
- package/dist/components/MapSwitch/index.vue.d.ts +37 -0
- package/dist/components/MapTools/index.d.ts +2 -0
- package/dist/components/MapTools/index.vue.d.ts +40 -0
- package/dist/components/MobileMapLayer/BaseLayerSwitch.vue.d.ts +16 -0
- package/dist/components/MobileMapLayer/index.vue.d.ts +9 -0
- package/dist/components/Widgets/PopupBar/BarItem.vue.d.ts +75 -0
- package/dist/components/Widgets/PopupBar/index.vue.d.ts +21 -0
- package/dist/composables/index.d.ts +13 -0
- package/dist/composables/useControl.d.ts +39 -0
- package/dist/composables/useDraw.d.ts +49 -0
- package/dist/composables/useLayer.d.ts +57 -0
- package/dist/composables/useMap.d.ts +111 -0
- package/dist/composables/useMarker.d.ts +55 -0
- package/dist/composables/useMeasure.d.ts +49 -0
- package/dist/composables/useSearch.d.ts +20 -0
- package/dist/config/api.config.d.ts +40 -0
- package/dist/config/gismap.config.d.ts +156 -0
- package/dist/core/ManagerRegistry.d.ts +75 -0
- package/dist/core/PluginSystem.d.ts +71 -0
- package/dist/core/StateStore.d.ts +96 -0
- package/dist/core/TypedEventEmitter.d.ts +67 -0
- package/dist/core/di/Container.d.ts +61 -0
- package/dist/core/di/decorators.d.ts +32 -0
- package/dist/core/di/index.d.ts +7 -0
- package/dist/core/di/types.d.ts +59 -0
- package/dist/core/event/EventBus.d.ts +101 -0
- package/dist/core/event/index.d.ts +5 -0
- package/dist/core/event/types.d.ts +215 -0
- package/dist/core/index.d.ts +6 -0
- package/dist/core/state/Store.d.ts +145 -0
- package/dist/core/state/index.d.ts +6 -0
- package/dist/core/state/types.d.ts +134 -0
- package/dist/domain/index.d.ts +8 -0
- package/dist/domain/layer/LayerEntity.d.ts +90 -0
- package/dist/domain/layer/LayerService.d.ts +128 -0
- package/dist/domain/marker/MarkerEntity.d.ts +77 -0
- package/dist/domain/marker/MarkerService.d.ts +105 -0
- package/dist/domain/types.d.ts +66 -0
- package/dist/examples/DrawDemo.vue.d.ts +2 -0
- package/dist/examples/DrawPanel.vue.d.ts +2 -0
- package/dist/examples/Map.vue.d.ts +74 -0
- package/dist/examples/MapDemoExample.vue.d.ts +2 -0
- package/dist/examples/MeasureDemo.vue.d.ts +2 -0
- package/dist/examples/MeasurePanel.vue.d.ts +2 -0
- package/dist/examples/SplitScreenDrawDemo.vue.d.ts +7 -0
- package/dist/examples/SplitScreenDrawPanel.vue.d.ts +12 -0
- package/dist/examples/SplitScreenPanel.vue.d.ts +12 -0
- package/dist/examples/TdtControlPanel.vue.d.ts +2 -0
- package/dist/examples/TiandituDemo.vue.d.ts +2 -0
- package/dist/gismap.css +1 -1
- package/dist/index.es.js +1 -1
- package/dist/main.d.ts +0 -0
- package/dist/manager/IconManager.d.ts +18 -0
- package/dist/manager/LayerManager.d.ts +50 -0
- package/dist/manager/MaskManager.d.ts +52 -0
- package/dist/manager/PlaceholderManager.d.ts +28 -0
- package/dist/manager/PopupManager.d.ts +13 -0
- package/dist/manager/QuickSearchManager.d.ts +24 -0
- package/dist/manager/RadarManager.d.ts +46 -0
- package/dist/manager/SplitScreenDrawManager.d.ts +75 -0
- package/dist/manager/SplitScreenManager.d.ts +81 -0
- package/dist/manager/TDTManager.d.ts +33 -0
- package/dist/manager/TemplateManager.d.ts +52 -0
- package/dist/manager/TerrainManager.d.ts +39 -0
- package/dist/manager/layer/MarkerLayer.d.ts +89 -0
- package/dist/manager/layer/VectorLayer.d.ts +30 -0
- package/dist/manager/mapbox/DrawManager.d.ts +153 -0
- package/dist/manager/mapbox/MeasureManager.d.ts +158 -0
- package/dist/router/index.d.ts +2 -0
- package/dist/services/MapContext.d.ts +171 -0
- package/dist/services/index.d.ts +5 -0
- package/dist/types/IEvents.d.ts +178 -0
- package/dist/types/IGISMap.d.ts +234 -0
- package/dist/types/IManager.d.ts +113 -0
- package/dist/types/IMapSearch.d.ts +28 -0
- package/dist/types/IState.d.ts +259 -0
- package/dist/types/ITemplate.d.ts +35 -0
- package/dist/types/index.d.ts +7 -0
- package/dist/utils/hooks/layout.d.ts +4 -0
- package/dist/utils/http/axios.d.ts +3 -0
- package/dist/utils/http/config.d.ts +3 -0
- package/dist/utils/http/request.d.ts +46 -0
- package/dist/utils/index.d.ts +49 -0
- package/package.json +1 -1
- package/dist/index.umd.js +0 -1
|
@@ -0,0 +1,66 @@
|
|
|
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;
|
|
@@ -0,0 +1,2 @@
|
|
|
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;
|
|
@@ -0,0 +1,2 @@
|
|
|
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;
|
|
@@ -0,0 +1,74 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
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;
|
|
@@ -0,0 +1,2 @@
|
|
|
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;
|
|
@@ -0,0 +1,2 @@
|
|
|
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;
|
|
@@ -0,0 +1,7 @@
|
|
|
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;
|
|
@@ -0,0 +1,12 @@
|
|
|
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;
|
|
@@ -0,0 +1,12 @@
|
|
|
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;
|
|
@@ -0,0 +1,2 @@
|
|
|
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;
|
|
@@ -0,0 +1,2 @@
|
|
|
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;
|