1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
| import { MapElementEnum } from '/@/constants/map'
|
| export interface mapLayerStyle {
| background: string
| }
|
| export interface mapLayerChildren {
| key: string
| style: mapLayerStyle
| title: string
| obj: any
| }
| export interface mapLayerChildrenObj {
| className: string
| key: string
| name: string
| type: string
| }
|
| // 拖拽事件
| export interface DropEvent {
| node: {
| eventKey: string
| pos: string
| $parent: any
| }
| dragNode: {
| eventKey: string
| }
| dropPosition: number
| dropToGap: boolean
| }
| export interface mapLayer {
| key?: string
| title: string
| id: string
| name: string
| style: mapLayerStyle
| elements: any
| }
| export interface elementGroupsReq{
| groupId: string
| isDistributed: boolean
| }
| export interface PostElementsBody {
| id: string
| name: string
| resource: {
| type: MapElementEnum,
| user_name?: string,
| content: {
| type:string,
| properties:{
| color:string,
| clampToGround:boolean
| },
| geometry:{
| type:string,
| coordinates:unknown
| }
| },
| }
| }
|
| export interface Color {
| id: number
| color: string
| selected: boolean,
| name: string
| }
|
| export enum GeoType {
| LineString = 'LineString',
| Polygon = 'Polygon',
| Point = 'Point'
| }
| export enum ResourceStatus {
| NotShow,
| Show
| }
|
| export enum LayerElevationLoadStatus {
| Unload,
| Load
| }
| export interface PutElementsBody {
| name?: string
| status?: ResourceStatus
| content?: unknown
| display?: number
| elevation_load_status?: LayerElevationLoadStatus
| }
| export enum LayerType {
| Normal,
| Default,
| Share,
| Reconstruction
| }
|
|