zhihao-ui 1.2.66 → 1.2.68
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/es/{BaseInfo-VzgiaCKn.js → BaseInfo-BhnEjLKF.js} +1 -1
- package/dist/es/{BaseItem-BtsARxvz.js → BaseItem-C4NJy1i4.js} +3 -3
- package/dist/es/{Button-Dw3i74l2.js → Button-CGndQwez.js} +2 -2
- package/dist/es/DatePicker-Dy1K1cJQ.js +57 -0
- package/dist/es/{DetailHeader-C5LjDuTv.js → DetailHeader-DaabNj_4.js} +3 -3
- package/dist/es/{DetailSubTitle-ak2l4HyV.js → DetailSubTitle-CzFZPXeE.js} +2 -2
- package/dist/es/{Dialog-Cw3E3ZU6.js → Dialog-BUW6ag1B.js} +3 -3
- package/dist/es/{DiyDataTable-Cgqys5z_.js → DiyDataTable-D-UZVciZ.js} +4 -4
- package/dist/es/{EditInfoPair-8SWkyWJC.js → EditInfoPair-B2f6zoGY.js} +3 -3
- package/dist/es/{FileWrapper-BKxBr28L.js → FileWrapper-D4IxJemr.js} +4 -4
- package/dist/es/{Grid-C8tYH4s7.js → Grid-DIs695lY.js} +2 -2
- package/dist/es/{InfoPair-C3obQrjB.js → InfoPair-Ce7nDfxD.js} +3 -3
- package/dist/es/{Input-C3HDYWCC.js → Input-C5X2X_YD.js} +3 -3
- package/dist/es/{Loading-DfL7OJvd.js → Loading-BgoEv5qE.js} +2 -2
- package/dist/es/Map-DbbD377l.js +2235 -0
- package/dist/es/{MessageBox-ByLWEDby.js → MessageBox-DiGH5x51.js} +2 -2
- package/dist/es/{MoneyInput-CxngoHAe.js → MoneyInput-D0kYiOfP.js} +8 -8
- package/dist/es/{PageHeadPanel-d3ponlDx.js → PageHeadPanel-C6IdOq6I.js} +2 -2
- package/dist/es/{Table-BufcZ4Wy.js → Table-B_3YA1mb.js} +5 -5
- package/dist/es/{ToolTips-D0FAOOvm.js → ToolTips-CiQHxGrw.js} +6 -6
- package/dist/es/index.js +60 -74
- package/dist/es/{utils-BSQSj8Ii.js → utils-D2wHR1YB.js} +1 -1
- package/dist/es/{vendor-DaYdW1_n.js → vendor-D2mv9LHk.js} +25786 -29321
- package/dist/index.css +1 -1
- package/dist/types/components/CascaderLoadMore/CascaderLoadMore.vue.d.ts +197 -0
- package/dist/types/components/CascaderLoadMore/index.d.ts +369 -0
- package/dist/types/components/CascaderLoadMore/types.d.ts +7 -0
- package/dist/types/components/Map/Map.vue.d.ts +101 -138
- package/dist/types/components/Map/components/scaleLine.vue.d.ts +2 -1
- package/dist/types/components/Map/components/zoomControl.vue.d.ts +7 -3
- package/dist/types/components/Map/config/global.d.ts +2 -0
- package/dist/types/components/Map/config/index.d.ts +2 -0
- package/dist/types/components/Map/config/map.d.ts +22 -0
- package/dist/types/components/Map/function/carTrack.d.ts +11 -0
- package/dist/types/components/Map/function/drawLine.d.ts +12 -0
- package/dist/types/components/Map/function/drawPolygon.d.ts +9 -0
- package/dist/types/components/Map/function/event.d.ts +9 -0
- package/dist/types/components/Map/function/layers.d.ts +10 -0
- package/dist/types/components/Map/function/map.d.ts +18 -0
- package/dist/types/components/Map/function/port.d.ts +10 -0
- package/dist/types/components/Map/function/position.d.ts +8 -0
- package/dist/types/components/Map/function/props.d.ts +7 -0
- package/dist/types/components/Map/function/ship/index.d.ts +16 -0
- package/dist/types/components/Map/function/ship/label.d.ts +5 -0
- package/dist/types/components/Map/function/ship/style.d.ts +23 -0
- package/dist/types/components/Map/function/shipOverlay.d.ts +12 -0
- package/dist/types/components/Map/function/shipTrack.d.ts +16 -0
- package/dist/types/components/Map/index.d.ts +324 -390
- package/dist/types/components/Map/interface/carTrack.d.ts +70 -0
- package/dist/types/components/Map/interface/index.d.ts +6 -13
- package/dist/types/components/Map/interface/label.d.ts +27 -0
- package/dist/types/components/Map/interface/mapProps.d.ts +15 -0
- package/dist/types/components/Map/interface/position.d.ts +7 -0
- package/dist/types/components/Map/interface/shipInfoVo.d.ts +214 -0
- package/dist/types/components/Map/interface/shipTrack.d.ts +57 -0
- package/dist/types/components/Map/interface/wharfEntity.d.ts +20 -0
- package/dist/types/components/Map/meta/index.d.ts +17 -0
- package/dist/types/components/Map/meta/ship.d.ts +26 -0
- package/dist/types/components/Map/types.d.ts +1 -13
- package/dist/types/components/Map/useMap.d.ts +17 -0
- package/dist/types/components/Map/utils/cursor.d.ts +3 -0
- package/dist/types/components/Map/utils/events.d.ts +4 -0
- package/dist/types/components/Map/utils/overlay.d.ts +5 -0
- package/dist/types/components/Map/utils/rbush.d.ts +13 -0
- package/dist/types/components/Map/utils/shipOverlay.d.ts +12 -0
- package/dist/types/components/Map/utils/track.d.ts +45 -0
- package/dist/types/components/Map/utils/util.d.ts +42 -0
- package/dist/umd/index.css +1 -1
- package/dist/umd/index.umd.cjs +130 -598
- package/package.json +1 -1
- package/dist/es/DatePicker-BCvYHlC7.js +0 -73
- package/dist/es/Map-BpqtL7_q.js +0 -2528
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
export interface VehicleInfo {
|
|
2
|
+
/**
|
|
3
|
+
* 车牌号
|
|
4
|
+
*/
|
|
5
|
+
vno: string;
|
|
6
|
+
/**
|
|
7
|
+
* 状态码
|
|
8
|
+
*/
|
|
9
|
+
status: string;
|
|
10
|
+
/**
|
|
11
|
+
* 车辆最后定位经度
|
|
12
|
+
*/
|
|
13
|
+
lon: string;
|
|
14
|
+
/**
|
|
15
|
+
* 车辆最后定位纬度
|
|
16
|
+
*/
|
|
17
|
+
lat: string;
|
|
18
|
+
/**
|
|
19
|
+
* 车辆地理位置名称
|
|
20
|
+
*/
|
|
21
|
+
adr: string;
|
|
22
|
+
/**
|
|
23
|
+
* 车辆定位时间戳
|
|
24
|
+
*/
|
|
25
|
+
utc: string;
|
|
26
|
+
/**
|
|
27
|
+
* 速度
|
|
28
|
+
*/
|
|
29
|
+
spd: string;
|
|
30
|
+
/**
|
|
31
|
+
* 方向
|
|
32
|
+
*/
|
|
33
|
+
drc: string;
|
|
34
|
+
/**
|
|
35
|
+
* 省
|
|
36
|
+
*/
|
|
37
|
+
province: string;
|
|
38
|
+
/**
|
|
39
|
+
* 市
|
|
40
|
+
*/
|
|
41
|
+
city: string;
|
|
42
|
+
/**
|
|
43
|
+
* 县
|
|
44
|
+
*/
|
|
45
|
+
country: string;
|
|
46
|
+
/**
|
|
47
|
+
* 里程
|
|
48
|
+
*/
|
|
49
|
+
mil: string;
|
|
50
|
+
/**
|
|
51
|
+
* 离线状态
|
|
52
|
+
*/
|
|
53
|
+
offlineState: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* 离线时长
|
|
56
|
+
*/
|
|
57
|
+
offlineTime: number;
|
|
58
|
+
/**
|
|
59
|
+
* 车辆已行驶距
|
|
60
|
+
*/
|
|
61
|
+
runDistance: string;
|
|
62
|
+
/**
|
|
63
|
+
* 剩余运距
|
|
64
|
+
*/
|
|
65
|
+
remainDistance: string;
|
|
66
|
+
/**
|
|
67
|
+
* 预计到达时间
|
|
68
|
+
*/
|
|
69
|
+
estimateArriveTime: string;
|
|
70
|
+
}
|
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export type { Ship, ShipQueryParam, ShipForm, AisTrackForm, CertificateFiles, ShipInfoForm, ShipUpdateForm, ImgType, BindParams, ShipBindDevice } from './entity/ship';
|
|
8
|
-
export type { ShipInfoVo } from './entity/shipInfoVo';
|
|
9
|
-
export { ShipMapData } from './entity/shipMapData';
|
|
10
|
-
export type { ShipMarker } from './entity/shipMarker';
|
|
11
|
-
export type { ShipTrack } from './entity/shipTrack';
|
|
12
|
-
export type { Vehicle, VehicleCertificationListReq, VehicleCertificationUpdateParams, VehicleInfoUpdateByKeyForm, VehicleHistory, SnayiVehicleInfoResponse, MediaChannel, QueryLicenseResponse, VehicleInfo } from './entity/vehicle';
|
|
13
|
-
export type { VehicleVo, VehicleInfoResponse } from './vo/vehicleVo';
|
|
1
|
+
export * from './shipInfoVo';
|
|
2
|
+
export * from './label';
|
|
3
|
+
export * from './carTrack';
|
|
4
|
+
export * from './mapProps';
|
|
5
|
+
export * from './wharfEntity';
|
|
6
|
+
export * from './position';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface ShipLabelData {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
lon: number;
|
|
5
|
+
lat: number;
|
|
6
|
+
blinking?: boolean;
|
|
7
|
+
blinkingColor?: string;
|
|
8
|
+
leftIcons?: string[];
|
|
9
|
+
rightIcons?: string[];
|
|
10
|
+
}
|
|
11
|
+
export interface LabelStyleOptions {
|
|
12
|
+
font?: string;
|
|
13
|
+
padding?: number;
|
|
14
|
+
iconSize?: number;
|
|
15
|
+
lineColor?: string;
|
|
16
|
+
blinkInterval?: number;
|
|
17
|
+
collisionPadding?: number;
|
|
18
|
+
}
|
|
19
|
+
export interface LabelFeature {
|
|
20
|
+
id: string;
|
|
21
|
+
bounds: [number, number, number, number];
|
|
22
|
+
position: 'top' | 'right' | 'bottom' | 'left';
|
|
23
|
+
connectionPoints: {
|
|
24
|
+
start: [number, number];
|
|
25
|
+
end: [number, number];
|
|
26
|
+
};
|
|
27
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Coordinate } from 'ol/coordinate';
|
|
2
|
+
|
|
3
|
+
export interface Props {
|
|
4
|
+
zoom?: number;
|
|
5
|
+
center?: Coordinate;
|
|
6
|
+
layerType?: "vector" | "satellite";
|
|
7
|
+
showGreenLayer?: boolean;
|
|
8
|
+
showScale?: boolean;
|
|
9
|
+
scaleLineUnit?: "metric" | "imperial" | "nautical";
|
|
10
|
+
mapMoveEnd?: (zoom: number) => void;
|
|
11
|
+
lineDrawEnd?: (line: any) => void;
|
|
12
|
+
areaDrawEnd?: (area: []) => void;
|
|
13
|
+
selectShip?: (id: string) => void;
|
|
14
|
+
selectPort?: (id: WharfEntity) => void;
|
|
15
|
+
}
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 船顺网区域查询船舶信息
|
|
3
|
+
*/
|
|
4
|
+
export interface ShipInfoVo {
|
|
5
|
+
/**
|
|
6
|
+
* 船舶 mmsi
|
|
7
|
+
*/
|
|
8
|
+
id: string;
|
|
9
|
+
/**
|
|
10
|
+
* 船舶填充色
|
|
11
|
+
*/
|
|
12
|
+
fill: string;
|
|
13
|
+
/**
|
|
14
|
+
* 船舶类型
|
|
15
|
+
*/
|
|
16
|
+
type: number;
|
|
17
|
+
/**
|
|
18
|
+
* 船舶中文名
|
|
19
|
+
*/
|
|
20
|
+
cnname: string;
|
|
21
|
+
/**
|
|
22
|
+
* 船舶英文名(假设这里应该是 enname 而不是船舶中文名)
|
|
23
|
+
*/
|
|
24
|
+
enname: string;
|
|
25
|
+
/**
|
|
26
|
+
* 船名
|
|
27
|
+
*/
|
|
28
|
+
name: string;
|
|
29
|
+
/**
|
|
30
|
+
* 分组信息(SHIP、VNM、RADIO、NETSONDE)
|
|
31
|
+
*/
|
|
32
|
+
g: string;
|
|
33
|
+
/**
|
|
34
|
+
* 船长
|
|
35
|
+
*/
|
|
36
|
+
len: number;
|
|
37
|
+
/**
|
|
38
|
+
* 船宽
|
|
39
|
+
*/
|
|
40
|
+
wid: number;
|
|
41
|
+
/**
|
|
42
|
+
* 吃水
|
|
43
|
+
*/
|
|
44
|
+
dpth: number;
|
|
45
|
+
/**
|
|
46
|
+
* gps 天线位置,距船首
|
|
47
|
+
*/
|
|
48
|
+
a: number;
|
|
49
|
+
/**
|
|
50
|
+
* 距船尾
|
|
51
|
+
*/
|
|
52
|
+
b: number;
|
|
53
|
+
/**
|
|
54
|
+
* 距左舷
|
|
55
|
+
*/
|
|
56
|
+
c: number;
|
|
57
|
+
/**
|
|
58
|
+
* 距右舷
|
|
59
|
+
*/
|
|
60
|
+
d: number;
|
|
61
|
+
/**
|
|
62
|
+
* 经纬度(假设这里应该是一个字符串表示,例如 "lon,lat")
|
|
63
|
+
*/
|
|
64
|
+
geom: string;
|
|
65
|
+
/**
|
|
66
|
+
* 经度
|
|
67
|
+
*/
|
|
68
|
+
lon: number;
|
|
69
|
+
/**
|
|
70
|
+
* 名称代码
|
|
71
|
+
*/
|
|
72
|
+
imo: string;
|
|
73
|
+
/**
|
|
74
|
+
* 目的地
|
|
75
|
+
*/
|
|
76
|
+
dest: string;
|
|
77
|
+
/**
|
|
78
|
+
* 纬度
|
|
79
|
+
*/
|
|
80
|
+
lat: number;
|
|
81
|
+
/**
|
|
82
|
+
* 创建时间
|
|
83
|
+
*/
|
|
84
|
+
time: number;
|
|
85
|
+
/**
|
|
86
|
+
* 速度
|
|
87
|
+
*/
|
|
88
|
+
spd: number;
|
|
89
|
+
/**
|
|
90
|
+
* 来源
|
|
91
|
+
*/
|
|
92
|
+
from: string;
|
|
93
|
+
/**
|
|
94
|
+
* 状态
|
|
95
|
+
*/
|
|
96
|
+
status: string;
|
|
97
|
+
/**
|
|
98
|
+
* 船艏向
|
|
99
|
+
*/
|
|
100
|
+
hdg: string;
|
|
101
|
+
/**
|
|
102
|
+
* 航迹向
|
|
103
|
+
*/
|
|
104
|
+
cog: number;
|
|
105
|
+
/**
|
|
106
|
+
* 最后更新时间
|
|
107
|
+
*/
|
|
108
|
+
mt: string;
|
|
109
|
+
/**
|
|
110
|
+
* 备用字段(暂无作用)
|
|
111
|
+
*/
|
|
112
|
+
isactive: string;
|
|
113
|
+
/**
|
|
114
|
+
* 备用字段(暂无作用)
|
|
115
|
+
*/
|
|
116
|
+
num: object;
|
|
117
|
+
/**
|
|
118
|
+
* 备用字段(暂无作用)
|
|
119
|
+
*/
|
|
120
|
+
ord: object;
|
|
121
|
+
/**
|
|
122
|
+
* 设备定位类型
|
|
123
|
+
*/
|
|
124
|
+
postype: string;
|
|
125
|
+
/**
|
|
126
|
+
* 设备定位类型(假设 pt 是 postype 的重复字段,或者这里可能有误)
|
|
127
|
+
*/
|
|
128
|
+
pt: string;
|
|
129
|
+
/**
|
|
130
|
+
* 设备厂商
|
|
131
|
+
*/
|
|
132
|
+
firm: string;
|
|
133
|
+
/**
|
|
134
|
+
* 总吨
|
|
135
|
+
*/
|
|
136
|
+
gt: string;
|
|
137
|
+
/**
|
|
138
|
+
* 预计到达时间
|
|
139
|
+
*/
|
|
140
|
+
eta: string;
|
|
141
|
+
/**
|
|
142
|
+
* 动态数据最后一次更新时间
|
|
143
|
+
*/
|
|
144
|
+
ct: string;
|
|
145
|
+
/**
|
|
146
|
+
* 建造时间
|
|
147
|
+
*/
|
|
148
|
+
build: string;
|
|
149
|
+
/**
|
|
150
|
+
* 呼号
|
|
151
|
+
*/
|
|
152
|
+
callsign: string;
|
|
153
|
+
/**
|
|
154
|
+
* 定位精度:差分类别
|
|
155
|
+
*/
|
|
156
|
+
diff: string;
|
|
157
|
+
/**
|
|
158
|
+
* 载重吨数
|
|
159
|
+
*/
|
|
160
|
+
tonCapacity: number;
|
|
161
|
+
/**
|
|
162
|
+
* 净吨数
|
|
163
|
+
*/
|
|
164
|
+
tonPure: number;
|
|
165
|
+
/**
|
|
166
|
+
* 是否存在摄像头
|
|
167
|
+
*/
|
|
168
|
+
existDevice: number;
|
|
169
|
+
/**
|
|
170
|
+
* 是否维护水尺 1:是 0:否
|
|
171
|
+
*/
|
|
172
|
+
existWaterGauge: number;
|
|
173
|
+
/**
|
|
174
|
+
* 是否存在手机号
|
|
175
|
+
*/
|
|
176
|
+
existMobile: number;
|
|
177
|
+
/**
|
|
178
|
+
* 货仓状态
|
|
179
|
+
* {@link com.zhihaoscm.domain.meta.biz.DeviceCapturePicDef.RecognizeResult}
|
|
180
|
+
*/
|
|
181
|
+
warehouseState: number;
|
|
182
|
+
/**
|
|
183
|
+
* 船只负责人
|
|
184
|
+
*/
|
|
185
|
+
captain: string;
|
|
186
|
+
/**
|
|
187
|
+
* 手机号
|
|
188
|
+
*/
|
|
189
|
+
mobile: string;
|
|
190
|
+
/**
|
|
191
|
+
* 分数
|
|
192
|
+
*/
|
|
193
|
+
scope: number;
|
|
194
|
+
/**
|
|
195
|
+
* 创建时间
|
|
196
|
+
*/
|
|
197
|
+
createTime: string;
|
|
198
|
+
/**
|
|
199
|
+
* 是否关注
|
|
200
|
+
*/
|
|
201
|
+
isFollowed: number;
|
|
202
|
+
/**
|
|
203
|
+
* 散货船类型 {@link ShipDef.BulkCargoShipType}
|
|
204
|
+
*/
|
|
205
|
+
bulkCargoShipType: number;
|
|
206
|
+
/**
|
|
207
|
+
* 关注的船自定义后缀
|
|
208
|
+
*/
|
|
209
|
+
existName: number;
|
|
210
|
+
blinkColors?: string[];
|
|
211
|
+
blinkingColors?: string[];
|
|
212
|
+
blinking?: boolean;
|
|
213
|
+
isSelected?: boolean;
|
|
214
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 船舶轨迹
|
|
3
|
+
*/
|
|
4
|
+
export interface ShipTrack {
|
|
5
|
+
id: string;
|
|
6
|
+
index: number;
|
|
7
|
+
cname: string;
|
|
8
|
+
/**
|
|
9
|
+
* 经度
|
|
10
|
+
*/
|
|
11
|
+
lon: number;
|
|
12
|
+
/**
|
|
13
|
+
* 纬度
|
|
14
|
+
*/
|
|
15
|
+
lat: number;
|
|
16
|
+
center: [number, number];
|
|
17
|
+
centerPoint: number[];
|
|
18
|
+
/**
|
|
19
|
+
* 动态数据创建时间
|
|
20
|
+
*/
|
|
21
|
+
createdAt: number;
|
|
22
|
+
receiveTime: number;
|
|
23
|
+
/**
|
|
24
|
+
* 速度
|
|
25
|
+
*/
|
|
26
|
+
speed: number;
|
|
27
|
+
/**
|
|
28
|
+
* 船舶航行状态(具体状态意思,参照 AIS 航行状态码国际标准)
|
|
29
|
+
*/
|
|
30
|
+
sailStatus: string;
|
|
31
|
+
/**
|
|
32
|
+
* 船艏向
|
|
33
|
+
*/
|
|
34
|
+
hdg: number;
|
|
35
|
+
/**
|
|
36
|
+
* 航迹向
|
|
37
|
+
*/
|
|
38
|
+
cog: number;
|
|
39
|
+
/**
|
|
40
|
+
* 来源
|
|
41
|
+
*/
|
|
42
|
+
from: string;
|
|
43
|
+
/**
|
|
44
|
+
* 旋转率
|
|
45
|
+
*/
|
|
46
|
+
rot: number;
|
|
47
|
+
/**
|
|
48
|
+
* 船舶航速分析(0 停,1 慢)
|
|
49
|
+
*/
|
|
50
|
+
state?: string | number;
|
|
51
|
+
/**
|
|
52
|
+
* 停留时间(航速分析中的停留时间,单位分钟)
|
|
53
|
+
*/
|
|
54
|
+
stayTime: string;
|
|
55
|
+
time: string;
|
|
56
|
+
bounds: number[];
|
|
57
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface WharfEntity {
|
|
2
|
+
id: number;
|
|
3
|
+
del: number;
|
|
4
|
+
createdBy: number;
|
|
5
|
+
createdTime: string;
|
|
6
|
+
updatedBy: number;
|
|
7
|
+
updatedTime: string;
|
|
8
|
+
name: string;
|
|
9
|
+
shortName: string;
|
|
10
|
+
area: number;
|
|
11
|
+
contactName: string;
|
|
12
|
+
phone: string;
|
|
13
|
+
provinceCode: string;
|
|
14
|
+
cityCode: string;
|
|
15
|
+
regionCode: string;
|
|
16
|
+
address: string;
|
|
17
|
+
latLon: string;
|
|
18
|
+
remark: string;
|
|
19
|
+
fullAddress: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare enum BASE_MAP_LINK {
|
|
2
|
+
vectorTile = "https://t0.tianditu.gov.cn/vec_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=vec&TILEMATRIXSET=w&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=a6e8f78974f2581f2ca00485b40c948f",
|
|
3
|
+
vectorTileMark = "https://t0.tianditu.gov.cn/cva_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=cva&TILEMATRIXSET=w&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=a6e8f78974f2581f2ca00485b40c948f",
|
|
4
|
+
satelliteImgTile = "https://t0.tianditu.gov.cn/img_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=img&TILEMATRIXSET=w&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=a6e8f78974f2581f2ca00485b40c948f",
|
|
5
|
+
satelliteImgTileMark = "https://t0.tianditu.gov.cn/cia_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=cia&TILEMATRIXSET=w&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=a6e8f78974f2581f2ca00485b40c948f",
|
|
6
|
+
greenTile = "https://static.zhihaoscm.cn//map/tile/{z}/{x}/{y}.png"
|
|
7
|
+
}
|
|
8
|
+
export declare enum LENGTH_UNIT {
|
|
9
|
+
M = 1,// m
|
|
10
|
+
KM = 2,// km
|
|
11
|
+
NM = 3
|
|
12
|
+
}
|
|
13
|
+
export declare enum LayerType {
|
|
14
|
+
PORT = "port",
|
|
15
|
+
SHIP = "ship",
|
|
16
|
+
TRACK = "track"
|
|
17
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare enum SHIP_SAIL_STATUS {
|
|
2
|
+
"发动机使用中" = 0,
|
|
3
|
+
"锚泊" = 1,
|
|
4
|
+
"未操作" = 2,
|
|
5
|
+
"操纵能力受限" = 3,
|
|
6
|
+
"吃水受限" = 4,
|
|
7
|
+
"系泊" = 5,
|
|
8
|
+
"搁浅" = 6,
|
|
9
|
+
"从事捕捞" = 7,
|
|
10
|
+
"航行中" = 8,
|
|
11
|
+
"留作将来修正导航状态" = 9,
|
|
12
|
+
"高速船留用" = 10,
|
|
13
|
+
"机动船尾推作业" = 11,
|
|
14
|
+
"机动船顶推或侧推作业" = 12,
|
|
15
|
+
"飞翼船留用" = 13,
|
|
16
|
+
"现行的" = 14,
|
|
17
|
+
"未定义" = 15
|
|
18
|
+
}
|
|
19
|
+
export declare enum SHIP_DIRECT {
|
|
20
|
+
'left' = "left",
|
|
21
|
+
'right' = "right",
|
|
22
|
+
'front' = "front",
|
|
23
|
+
'up' = "up",
|
|
24
|
+
'down' = "down",
|
|
25
|
+
'back' = "back"
|
|
26
|
+
}
|
|
@@ -1,13 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
"vector" = 0,
|
|
3
|
-
"satellite" = 1
|
|
4
|
-
}
|
|
5
|
-
export declare enum SEARCH_TYPE {
|
|
6
|
-
SEARCH_SHIP = 0,
|
|
7
|
-
SEARCH_PORT = 1,
|
|
8
|
-
SEARCH_CUSTOM = 2
|
|
9
|
-
}
|
|
10
|
-
export declare enum COPY_RIGHT_TYPE {
|
|
11
|
-
HORIZONTAL = 0,
|
|
12
|
-
VERTICAL = 1
|
|
13
|
-
}
|
|
1
|
+
export * from './interface';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Props } from './interface';
|
|
2
|
+
|
|
3
|
+
export interface MapInstance {
|
|
4
|
+
id: symbol;
|
|
5
|
+
destroy: () => void;
|
|
6
|
+
methods: object;
|
|
7
|
+
}
|
|
8
|
+
export declare const useMapController: () => {
|
|
9
|
+
createInstance: (element: HTMLDivElement, props: Props) => MapInstance;
|
|
10
|
+
destroyInstance: (id: symbol) => void;
|
|
11
|
+
destroyAll: () => void;
|
|
12
|
+
getAllInstances: () => {
|
|
13
|
+
id: symbol;
|
|
14
|
+
destroy: () => void;
|
|
15
|
+
methods: object;
|
|
16
|
+
}[];
|
|
17
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as RBush } from 'rbush';
|
|
2
|
+
import { Feature, Map } from 'ol';
|
|
3
|
+
import { Coordinate } from 'ol/coordinate';
|
|
4
|
+
|
|
5
|
+
export declare const rtree: RBush<unknown>;
|
|
6
|
+
/**
|
|
7
|
+
* 添加元素存储进Rush
|
|
8
|
+
* @param feature
|
|
9
|
+
* @param coords
|
|
10
|
+
* @param map
|
|
11
|
+
*/
|
|
12
|
+
export declare const addToRush: (feature: Feature, coords: Coordinate, map: Map) => void;
|
|
13
|
+
export declare const findAvailablePosition: (originalCoords: Coordinate, map: Map, maxRadius?: number) => number[] | null;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface ShipOverlayProps {
|
|
2
|
+
selected: boolean;
|
|
3
|
+
name: string;
|
|
4
|
+
colors: string[];
|
|
5
|
+
position: [number, number];
|
|
6
|
+
existDevice?: number | boolean;
|
|
7
|
+
existMobile?: number | boolean;
|
|
8
|
+
existWaterGauge?: number | boolean;
|
|
9
|
+
}
|
|
10
|
+
export default function useShipOverlay(props: ShipOverlayProps): () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
}>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { LineString } from 'ol/geom';
|
|
2
|
+
import { Style } from 'ol/style';
|
|
3
|
+
|
|
4
|
+
export declare const convertSixHundredThousandToLatLng: (valueX: number | string, valueY: number | string) => [lng: number, lat: number];
|
|
5
|
+
/**
|
|
6
|
+
* 通过圆心和半径计算区域范围 输出为矩形
|
|
7
|
+
* @param center 圆心坐标
|
|
8
|
+
* @param radiusInKilometers 距离 单位:公里
|
|
9
|
+
*/
|
|
10
|
+
export declare const calculateCirclePoints: (center: [number, number], radiusInKilometers: number) => {
|
|
11
|
+
leftTopPoint: {
|
|
12
|
+
lng: number;
|
|
13
|
+
lat: number;
|
|
14
|
+
};
|
|
15
|
+
rightTopPoint: {
|
|
16
|
+
lng: number;
|
|
17
|
+
lat: number;
|
|
18
|
+
};
|
|
19
|
+
rightBottomPoint: {
|
|
20
|
+
lng: number;
|
|
21
|
+
lat: number;
|
|
22
|
+
};
|
|
23
|
+
leftBottomPoint: {
|
|
24
|
+
lng: number;
|
|
25
|
+
lat: number;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* 计算多段线距离.
|
|
30
|
+
* @param {LineString} line The line.
|
|
31
|
+
* @param unit
|
|
32
|
+
* @return {string} The formatted length.
|
|
33
|
+
*/
|
|
34
|
+
export declare const formatLength: (line: LineString, unit: number) => string;
|
|
35
|
+
export declare function lonLatToMercator(center: [number, number]): number[];
|
|
36
|
+
export declare function getIconFont(unicode?: string): string;
|
|
37
|
+
export declare const getIconStyle: (symbol: string) => Style;
|
|
38
|
+
export declare const mercatorToLonLat: (center: [number, number], type?: string) => number[] | {
|
|
39
|
+
lon: number;
|
|
40
|
+
lat: number;
|
|
41
|
+
};
|
|
42
|
+
export declare const adjustBounds: (bounds: number[], offsets: number[]) => number[];
|
|
43
|
+
export declare const isOverlapping: (bounds1: number[], bounds2: number[]) => boolean;
|
|
44
|
+
export declare const formatMinutesToDDHHMM: (minutes: number) => string;
|
|
45
|
+
export declare function douglasPeucker(coords: any, tolerance: any): any;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { LineString } from 'ol/geom';
|
|
2
|
+
import { Style } from 'ol/style';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* 通过圆心和半径计算区域范围 输出为矩形
|
|
6
|
+
* @param center 圆心坐标
|
|
7
|
+
* @param radiusInKilometers 距离 单位:公里
|
|
8
|
+
*/
|
|
9
|
+
export declare const calculateCirclePoints: (center: [number, number], radiusInKilometers: number) => {
|
|
10
|
+
leftTopPoint: {
|
|
11
|
+
lng: number;
|
|
12
|
+
lat: number;
|
|
13
|
+
};
|
|
14
|
+
rightTopPoint: {
|
|
15
|
+
lng: number;
|
|
16
|
+
lat: number;
|
|
17
|
+
};
|
|
18
|
+
rightBottomPoint: {
|
|
19
|
+
lng: number;
|
|
20
|
+
lat: number;
|
|
21
|
+
};
|
|
22
|
+
leftBottomPoint: {
|
|
23
|
+
lng: number;
|
|
24
|
+
lat: number;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* 计算多段线距离.
|
|
29
|
+
* @param {LineString} line The line.
|
|
30
|
+
* @param unit
|
|
31
|
+
* @return {string} The formatted length.
|
|
32
|
+
*/
|
|
33
|
+
export declare const formatLength: (line: LineString, unit: number) => string;
|
|
34
|
+
export declare function lonLatToMercator(center: [number, number]): number[];
|
|
35
|
+
export declare function getIconFont(unicode?: string): any;
|
|
36
|
+
export declare const getIconStyle: (symbol: string) => Style;
|
|
37
|
+
export declare const mercatorToLonLat: (center: [number, number], type?: string) => number[] | {
|
|
38
|
+
lon: number;
|
|
39
|
+
lat: number;
|
|
40
|
+
};
|
|
41
|
+
export declare const adjustBounds: (bounds: number[], offsets: number[]) => number[];
|
|
42
|
+
export declare const isOverlapping: (bounds1: number[], bounds2: number[]) => boolean;
|