cesium-pocket 0.5.6-alpha → 0.5.8-alpha
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/{CircleDrawer-CqX1Jptk.js → CircleDrawer-DlT8c84Y.js} +15 -11
- package/LayersManager-DcmcsGva.js +246 -0
- package/{PolygonGaguger-BE5zUsu1.js → PolygonGaguger-DrRpBgxG.js} +1 -1
- package/drawer.js +1 -1
- package/gauger.js +1 -1
- package/index.css +1 -1
- package/index.d.ts +3 -3
- package/index.js +1140 -1294
- package/layers.d.ts +3 -0
- package/package.json +4 -4
- package/src/drawer/DataCenter.d.ts +0 -1
- package/src/layers/LayersManager.d.ts +68 -0
- package/src/layers/amap/index.d.ts +5 -0
- package/src/layers/index.d.ts +7 -0
- package/src/layers/tianmap/index.d.ts +7 -0
- package/tianmap.js +5 -1
- package/src/layersMap/index.d.ts +0 -9
- package/src/tianmap/index.d.ts +0 -9
- package/tianmap.d.ts +0 -2
|
@@ -159,16 +159,20 @@ class S extends W {
|
|
|
159
159
|
}
|
|
160
160
|
//在删除状态下,删除节点
|
|
161
161
|
deletePoint(e) {
|
|
162
|
-
this.delConfirmFun
|
|
162
|
+
console.log("-----------------"), console.log(this.delConfirmFun), this.delConfirmFun ? this.delConfirmFun().then((t) => {
|
|
163
163
|
t && (this.dataSource.entities.remove(e), this.dsToMd(), this.delCallbackFun && this.delCallbackFun());
|
|
164
|
-
});
|
|
165
|
-
}
|
|
166
|
-
delCallback() {
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
}
|
|
164
|
+
}) : confirm("确定删除吗?") && (this.dataSource.entities.remove(e), this.dsToMd(), this.delCallbackFun && this.delCallbackFun());
|
|
165
|
+
}
|
|
166
|
+
// protected delCallback(): Promise<boolean> {
|
|
167
|
+
// return new Promise((resolve) => {
|
|
168
|
+
// const result: boolean = confirm("确定删除吗?");
|
|
169
|
+
// if (result) {
|
|
170
|
+
// resolve(true);
|
|
171
|
+
// } else {
|
|
172
|
+
// resolve(false);
|
|
173
|
+
// }
|
|
174
|
+
// });
|
|
175
|
+
// }
|
|
172
176
|
}
|
|
173
177
|
class _ extends S {
|
|
174
178
|
constructor(e, t = null) {
|
|
@@ -221,7 +225,7 @@ class _ extends S {
|
|
|
221
225
|
} else
|
|
222
226
|
this.delUnable();
|
|
223
227
|
}, c.MOUSE_MOVE);
|
|
224
|
-
}, t && (this.addPointFun = t.addPointFun ? t.addPointFun : this.addBillboardCallback,
|
|
228
|
+
}, t && (this.addPointFun = t.addPointFun ? t.addPointFun : this.addBillboardCallback, t.afterAddPointFun && (this.afterAddPointFun = t.afterAddPointFun), t.editPointFun && (this.editPointFun = t.editPointFun), t.delConfirmFun && (this.delConfirmFun = t.delConfirmFun));
|
|
225
229
|
}
|
|
226
230
|
start() {
|
|
227
231
|
super.drawableStatus(), this.handler || (this.handler = new C(this.viewer.scene.canvas)), this.point_L_ClickEvent(), this.point_L_DownEvent(), this.point_L_UpEvent(), this.point_moveEvent();
|
|
@@ -355,7 +359,7 @@ class Z extends S {
|
|
|
355
359
|
entityType: "DASHLINE"
|
|
356
360
|
}
|
|
357
361
|
});
|
|
358
|
-
}, t && (t.drawerMode && (this.drawerMode = t.drawerMode), this.point = t.point, this.polyline = t.polyline, this.deshline = t.deshline, this.polygon = t.polygon, t.afterAddPointFun && (this.afterAddPointFun = t.afterAddPointFun), t.movingCallbackFun && (this.movingCallbackFun = t.movingCallbackFun), t.editCallbackFun && (this.editCallbackFun = t.editCallbackFun), t.delCallbackFun && (this.delCallbackFun = t.delCallbackFun), t.stopDrawCallbackFun && (this.stopDrawCallbackFun = t.stopDrawCallbackFun), t.delConfirmFun
|
|
362
|
+
}, t && (t.drawerMode && (this.drawerMode = t.drawerMode), this.point = t.point, this.polyline = t.polyline, this.deshline = t.deshline, this.polygon = t.polygon, t.afterAddPointFun && (this.afterAddPointFun = t.afterAddPointFun), t.movingCallbackFun && (this.movingCallbackFun = t.movingCallbackFun), t.editCallbackFun && (this.editCallbackFun = t.editCallbackFun), t.delCallbackFun && (this.delCallbackFun = t.delCallbackFun), t.stopDrawCallbackFun && (this.stopDrawCallbackFun = t.stopDrawCallbackFun), t.delConfirmFun && (this.delConfirmFun = t.delConfirmFun));
|
|
359
363
|
}
|
|
360
364
|
start() {
|
|
361
365
|
super.drawableStatus(), this.handler || (this.handler = new C(this.viewer.scene.canvas)), this.r_ClickEvent(), this.l_ClickEvent(), this.l_ClickCtrlEvent(), this.l_DownEvent(), this.l_UpEvent(), this.moveCtrlEvent(), this.moveEvent();
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
import { UrlTemplateImageryProvider as o, WebMercatorTilingScheme as n, WebMapTileServiceImageryProvider as s, Credit as l, Ion as T, IonImageryProvider as r } from "cesium";
|
|
2
|
+
const c = new o({
|
|
3
|
+
url: "https://webst0{s}.is.autonavi.com/appmaptile?style=6&x={x}&y={y}&z={z}",
|
|
4
|
+
subdomains: ["1", "2", "3", "4"],
|
|
5
|
+
tilingScheme: new n(),
|
|
6
|
+
minimumLevel: 3,
|
|
7
|
+
maximumLevel: 18,
|
|
8
|
+
credit: "高德地图"
|
|
9
|
+
}), y = new o({
|
|
10
|
+
url: "https://webst0{s}.is.autonavi.com/appmaptile?style=8&x={x}&y={y}&z={z}",
|
|
11
|
+
subdomains: ["1", "2", "3", "4"],
|
|
12
|
+
tilingScheme: new n(),
|
|
13
|
+
minimumLevel: 3,
|
|
14
|
+
maximumLevel: 18,
|
|
15
|
+
credit: "高德地图"
|
|
16
|
+
}), _ = new o({
|
|
17
|
+
url: "https://wprd0{s}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scl=2&style=7&x={x}&y={y}&z={z}",
|
|
18
|
+
subdomains: ["1", "2", "3", "4"],
|
|
19
|
+
tilingScheme: new n(),
|
|
20
|
+
minimumLevel: 3,
|
|
21
|
+
maximumLevel: 18,
|
|
22
|
+
credit: "高德地图"
|
|
23
|
+
}), w = new o({
|
|
24
|
+
url: "https://wprd0{s}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scl=1&style=7&x={x}&y={y}&z={z}",
|
|
25
|
+
subdomains: ["1", "2", "3", "4"],
|
|
26
|
+
tilingScheme: new n(),
|
|
27
|
+
minimumLevel: 3,
|
|
28
|
+
maximumLevel: 18,
|
|
29
|
+
credit: "高德地图"
|
|
30
|
+
}), m = "41a84209559237faa6064094bf9dbfcb", M = new s({
|
|
31
|
+
url: "http://{s}.tianditu.gov.cn/img_w/wmts?service=wmts&request=GetTile&version=1.0.0&LAYER=img&tileMatrixSet=w&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}&style=default&format=tiles&tk=" + m,
|
|
32
|
+
layer: "img",
|
|
33
|
+
style: "default",
|
|
34
|
+
format: "image/jpeg",
|
|
35
|
+
tileMatrixSetID: "w",
|
|
36
|
+
subdomains: ["t0", "t1", "t2", "t3", "t4", "t5", "t6", "t7"],
|
|
37
|
+
credit: new l("天地图影像"),
|
|
38
|
+
maximumLevel: 18
|
|
39
|
+
}), d = new s({
|
|
40
|
+
url: "http://{s}.tianditu.gov.cn/cia_w/wmts?service=wmts&request=GetTile&version=1.0.0&LAYER=cia&tileMatrixSet=w&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}&style=default&format=tiles&tk=" + m,
|
|
41
|
+
layer: "cia",
|
|
42
|
+
style: "default",
|
|
43
|
+
format: "image/jpeg",
|
|
44
|
+
tileMatrixSetID: "w",
|
|
45
|
+
subdomains: ["t0", "t1", "t2", "t3", "t4", "t5", "t6", "t7"],
|
|
46
|
+
credit: new l("天地图影像注记"),
|
|
47
|
+
maximumLevel: 18
|
|
48
|
+
}), u = new s({
|
|
49
|
+
url: "http://{s}.tianditu.gov.cn/vec_w/wmts?service=wmts&request=GetTile&version=1.0.0&LAYER=vec&tileMatrixSet=w&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}&style=default&format=tiles&tk=" + m,
|
|
50
|
+
layer: "vec",
|
|
51
|
+
//wmts请求的层名称
|
|
52
|
+
style: "default",
|
|
53
|
+
format: "image/jpeg",
|
|
54
|
+
tileMatrixSetID: "w",
|
|
55
|
+
//用于WMTS请求的TileMatrixSet的标识符。
|
|
56
|
+
subdomains: ["t0", "t1", "t2", "t3", "t4", "t5", "t6", "t7"],
|
|
57
|
+
credit: new l("天地图矢量"),
|
|
58
|
+
maximumLevel: 18
|
|
59
|
+
}), v = new s({
|
|
60
|
+
url: "http://{s}.tianditu.gov.cn/cva_w/wmts?service=wmts&request=GetTile&version=1.0.0&LAYER=cva&tileMatrixSet=w&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}&style=default&format=tiles&tk=" + m,
|
|
61
|
+
layer: "vec",
|
|
62
|
+
//wmts请求的层名称
|
|
63
|
+
style: "default",
|
|
64
|
+
format: "image/jpeg",
|
|
65
|
+
tileMatrixSetID: "w",
|
|
66
|
+
//用于WMTS请求的TileMatrixSet的标识符。
|
|
67
|
+
subdomains: ["t0", "t1", "t2", "t3", "t4", "t5", "t6", "t7"],
|
|
68
|
+
credit: new l("天地图矢量注记"),
|
|
69
|
+
maximumLevel: 18
|
|
70
|
+
}), I = new s({
|
|
71
|
+
url: "http://{s}.tianditu.gov.cn/ter_w/wmts?service=wmts&request=GetTile&version=1.0.0&LAYER=ter&tileMatrixSet=w&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}&style=default&format=tiles&tk=" + m,
|
|
72
|
+
layer: "ter",
|
|
73
|
+
style: "default",
|
|
74
|
+
format: "image/jpeg",
|
|
75
|
+
tileMatrixSetID: "11",
|
|
76
|
+
subdomains: ["t0", "t1", "t2", "t3", "t4", "t5", "t6", "t7"],
|
|
77
|
+
credit: new l("天地图地形渲晕"),
|
|
78
|
+
maximumLevel: 18
|
|
79
|
+
}), g = new s({
|
|
80
|
+
url: "http://{s}.tianditu.gov.cn/cta_w/wmts?service=wmts&request=GetTile&version=1.0.0&LAYER=cta&tileMatrixSet=w&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}&style=default&format=tiles&tk=" + m,
|
|
81
|
+
layer: "cta",
|
|
82
|
+
style: "default",
|
|
83
|
+
format: "image/jpeg",
|
|
84
|
+
tileMatrixSetID: "w",
|
|
85
|
+
subdomains: ["t0", "t1", "t2", "t3", "t4", "t5", "t6", "t7"],
|
|
86
|
+
credit: new l("天地图地形渲晕注记"),
|
|
87
|
+
maximumLevel: 18
|
|
88
|
+
}), a = {
|
|
89
|
+
BING_IMG: Symbol("BING_IMG"),
|
|
90
|
+
//必应图影像
|
|
91
|
+
BING_IMG_NIGHT: Symbol("BING_IMG_NIGHT"),
|
|
92
|
+
//必应图影像夜间
|
|
93
|
+
BING_IMG_S: Symbol("BING_IMG_S"),
|
|
94
|
+
//必应图影像注记
|
|
95
|
+
GOOGLE_IMG: Symbol("GOOGLE_IMG"),
|
|
96
|
+
//google影像地图
|
|
97
|
+
GOOGLE_IMG_S: Symbol("GOOGLE_IMG_S"),
|
|
98
|
+
//google注记
|
|
99
|
+
TDT_IMG: Symbol("TDT_IMG"),
|
|
100
|
+
//天地图影像
|
|
101
|
+
TDT_IMG_S: Symbol("TDT_IMG_S"),
|
|
102
|
+
//天地图影像注记
|
|
103
|
+
TDT_VEC: Symbol("TDT_VEC"),
|
|
104
|
+
///天地图矢量
|
|
105
|
+
TDT_VEC_S: Symbol("TDT_VEC_S"),
|
|
106
|
+
//天地图矢量注记
|
|
107
|
+
TDT_TER: Symbol("TDT_TER"),
|
|
108
|
+
//天地图地形渲晕
|
|
109
|
+
TDT_TER_S: Symbol("TDT_TER_S"),
|
|
110
|
+
//天地图地形渲晕
|
|
111
|
+
AMAP_IMG: Symbol("AMAP_IMG"),
|
|
112
|
+
//高德地图影像
|
|
113
|
+
AMAP_IMG_S: Symbol("AMAP_IMG_S"),
|
|
114
|
+
//高德地图影像
|
|
115
|
+
AMAP_VEC: Symbol("AMAP_VEC"),
|
|
116
|
+
//高德地图矢量
|
|
117
|
+
AMAP_VEC_S: Symbol("AMAP_VEC_S"),
|
|
118
|
+
//高德地图矢量注记
|
|
119
|
+
MARS: Symbol("MARS"),
|
|
120
|
+
//火星
|
|
121
|
+
MOON: Symbol("MOON")
|
|
122
|
+
//月球
|
|
123
|
+
};
|
|
124
|
+
class h {
|
|
125
|
+
constructor(i) {
|
|
126
|
+
this.layerMap = /* @__PURE__ */ new Map(), this.viewer = i;
|
|
127
|
+
}
|
|
128
|
+
// private generateId() {
|
|
129
|
+
// const r = Math.floor(Math.random() * 100000);
|
|
130
|
+
// return `${Date.now()}${r}`;
|
|
131
|
+
// }
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
* @param imageryProvider
|
|
135
|
+
* @param code 自定义的唯一标识
|
|
136
|
+
* @param options
|
|
137
|
+
*/
|
|
138
|
+
addLayer(i, t) {
|
|
139
|
+
console.log("----------addLayer-----------"), console.log(t);
|
|
140
|
+
const e = this.viewer.imageryLayers.addImageryProvider(i);
|
|
141
|
+
t && (t.code !== void 0 && (this.layerMap.set(t.code, e), console.log(this.layerMap)), t.show !== void 0 && (e.show = t.show), t.alpha !== void 0 && (e.alpha = t.alpha), t.brightness !== void 0 && (e.brightness = t.brightness), t.contrast !== void 0 && (e.contrast = t.contrast), t.hue !== void 0 && (e.hue = t.hue), t.saturation !== void 0 && (e.saturation = t.saturation), t.gamma !== void 0 && (e.gamma = t.gamma));
|
|
142
|
+
}
|
|
143
|
+
setIonToken() {
|
|
144
|
+
T.defaultAccessToken = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiI3NGNiZWIyNC04ZDEyLTRmMTctYjhkOS00NTQyM2JlZDFhMTUiLCJpZCI6Mjg4Mzc1LCJpYXQiOjE3NDQxNzgzMjR9.zjzR0GFshIGU0yxjbf2hAmVSwX3xribhGzDfl-Gv6q4";
|
|
145
|
+
}
|
|
146
|
+
async addCPLayer(i, t) {
|
|
147
|
+
let e = null;
|
|
148
|
+
switch (i) {
|
|
149
|
+
case a.BING_IMG:
|
|
150
|
+
this.setIonToken(), e = await r.fromAssetId(2);
|
|
151
|
+
break;
|
|
152
|
+
case a.BING_IMG_NIGHT:
|
|
153
|
+
this.setIonToken(), e = await r.fromAssetId(3812);
|
|
154
|
+
break;
|
|
155
|
+
case a.BING_IMG_S:
|
|
156
|
+
this.setIonToken(), e = await r.fromAssetId(2411391);
|
|
157
|
+
break;
|
|
158
|
+
case a.GOOGLE_IMG:
|
|
159
|
+
this.setIonToken(), e = await r.fromAssetId(3830182);
|
|
160
|
+
break;
|
|
161
|
+
case a.GOOGLE_IMG_S:
|
|
162
|
+
this.setIonToken(), e = await r.fromAssetId(3830185);
|
|
163
|
+
break;
|
|
164
|
+
case a.MARS:
|
|
165
|
+
this.setIonToken(), e = await r.fromAssetId(3644333);
|
|
166
|
+
break;
|
|
167
|
+
case a.MOON:
|
|
168
|
+
this.setIonToken(), e = await r.fromAssetId(2684829);
|
|
169
|
+
break;
|
|
170
|
+
case a.AMAP_IMG:
|
|
171
|
+
e = c;
|
|
172
|
+
break;
|
|
173
|
+
case a.AMAP_IMG_S:
|
|
174
|
+
e = y;
|
|
175
|
+
break;
|
|
176
|
+
case a.AMAP_VEC:
|
|
177
|
+
e = _;
|
|
178
|
+
break;
|
|
179
|
+
case a.AMAP_VEC_S:
|
|
180
|
+
e = w;
|
|
181
|
+
break;
|
|
182
|
+
case a.TDT_IMG:
|
|
183
|
+
e = M;
|
|
184
|
+
break;
|
|
185
|
+
case a.TDT_IMG_S:
|
|
186
|
+
e = d;
|
|
187
|
+
break;
|
|
188
|
+
case a.TDT_VEC:
|
|
189
|
+
e = u;
|
|
190
|
+
break;
|
|
191
|
+
case a.TDT_VEC_S:
|
|
192
|
+
e = v;
|
|
193
|
+
break;
|
|
194
|
+
case a.TDT_TER:
|
|
195
|
+
e = I;
|
|
196
|
+
break;
|
|
197
|
+
case a.TDT_TER_S:
|
|
198
|
+
e = g;
|
|
199
|
+
break;
|
|
200
|
+
}
|
|
201
|
+
e && this.addLayer(e, t);
|
|
202
|
+
}
|
|
203
|
+
getLayerByCode(i) {
|
|
204
|
+
let t = this.layerMap.get(i);
|
|
205
|
+
return t || null;
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* 清除图层(物理清除)
|
|
209
|
+
* @param layer
|
|
210
|
+
*/
|
|
211
|
+
clearLayer(i) {
|
|
212
|
+
for (const [t, e] of this.layerMap)
|
|
213
|
+
e === i && this.layerMap.delete(t);
|
|
214
|
+
this.viewer.imageryLayers.remove(i, !0);
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* 删除图层
|
|
218
|
+
* @param layer
|
|
219
|
+
*/
|
|
220
|
+
removeLayer(i) {
|
|
221
|
+
this.viewer.imageryLayers.remove(i, !1);
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
*
|
|
225
|
+
* @param layer
|
|
226
|
+
*/
|
|
227
|
+
raiseToTop(i) {
|
|
228
|
+
this.viewer.imageryLayers.raiseToTop(i);
|
|
229
|
+
}
|
|
230
|
+
lowerToBottom(i) {
|
|
231
|
+
this.viewer.imageryLayers.lowerToBottom(i);
|
|
232
|
+
}
|
|
233
|
+
raise(i) {
|
|
234
|
+
this.viewer.imageryLayers.raise(i);
|
|
235
|
+
}
|
|
236
|
+
lower(i) {
|
|
237
|
+
this.viewer.imageryLayers.lower(i);
|
|
238
|
+
}
|
|
239
|
+
removeAllLayers() {
|
|
240
|
+
this.layerMap.clear(), this.viewer.imageryLayers.removeAll();
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
export {
|
|
244
|
+
a as C,
|
|
245
|
+
h as L
|
|
246
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Cartographic as v, EllipsoidGeodesic as Y, Cartesian3 as g, BoundingSphere as N, Transforms as y, Matrix4 as M, CustomDataSource as L, ConstantPositionProperty as d, ConstantProperty as u, Color as c, Cartesian2 as B, VerticalOrigin as F, HorizontalOrigin as T, LabelStyle as x, Math as k } from "cesium";
|
|
2
|
-
import { a as j, R as U, P as W, D as G, C as O, b as Z } from "./CircleDrawer-
|
|
2
|
+
import { a as j, R as U, P as W, D as G, C as O, b as Z } from "./CircleDrawer-DlT8c84Y.js";
|
|
3
3
|
const A = (r, t) => {
|
|
4
4
|
const l = v.fromCartesian(r), e = v.fromCartesian(t);
|
|
5
5
|
return new Y(l, e).surfaceDistance;
|
package/drawer.js
CHANGED
package/gauger.js
CHANGED
package/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.cp-porket-compass[data-v-52d8d836]{position:absolute;z-index:1000;width:100px;height:100px;cursor:pointer}.cp-porket-ruler[data-v-8e93d8ff]{z-index:1000;width:100px;height:20px;text-align:center;padding-top:2px;font-size:12px;color:#ebebeb}.cp-porket-ruler-line[data-v-8e93d8ff]{width:100px;height:5px;border-bottom:1px solid #eeeeee;border-left:2px solid #eeeeee;border-right:2px solid #eeeeee;margin-top:-2px}.cp-porket-coord[data-v-064db41e]{z-index:1000;width:200px;height:26px;text-align:center;font-size:12px;display:flex;justify-content:space-around;color:#eee}.cp-overlay[data-v-2b05e7d5]{position:absolute;z-index:100;font-size:12px}.cp-overlay-close[data-v-2b05e7d5]{position:absolute;right:0;top:0;z-index:10;width:30px;height:30px;line-height:30px;text-align:center;cursor:pointer}.cp-overlay-close-img[data-v-2b05e7d5]{width:30px;height:30px;color:#fff}.cesium-html-marker[data-v-da185123]{pointer-events:auto;z-index:1000}.pin-container[data-v-da185123]{position:absolute;z-index:20;color:#eee;font-size:12px;text-shadow:-1px -1px 0 #06012c,1px -1px 0 #06012c,-1px 1px 0 #06012c,1px 1px 0 #06012c;margin:0;padding:5px;border-radius:4px}.cp-layersmap
|
|
1
|
+
.cp-porket-compass[data-v-52d8d836]{position:absolute;z-index:1000;width:100px;height:100px;cursor:pointer}.cp-porket-ruler[data-v-8e93d8ff]{z-index:1000;width:100px;height:20px;text-align:center;padding-top:2px;font-size:12px;color:#ebebeb}.cp-porket-ruler-line[data-v-8e93d8ff]{width:100px;height:5px;border-bottom:1px solid #eeeeee;border-left:2px solid #eeeeee;border-right:2px solid #eeeeee;margin-top:-2px}.cp-porket-coord[data-v-064db41e]{z-index:1000;width:200px;height:26px;text-align:center;font-size:12px;display:flex;justify-content:space-around;color:#eee}.cp-overlay[data-v-2b05e7d5]{position:absolute;z-index:100;font-size:12px}.cp-overlay-close[data-v-2b05e7d5]{position:absolute;right:0;top:0;z-index:10;width:30px;height:30px;line-height:30px;text-align:center;cursor:pointer}.cp-overlay-close-img[data-v-2b05e7d5]{width:30px;height:30px;color:#fff}.cesium-html-marker[data-v-da185123]{pointer-events:auto;z-index:1000}.pin-container[data-v-da185123]{position:absolute;z-index:20;color:#eee;font-size:12px;text-shadow:-1px -1px 0 #06012c,1px -1px 0 #06012c,-1px 1px 0 #06012c,1px 1px 0 #06012c;margin:0;padding:5px;border-radius:4px}.cp-layersmap-header[data-v-ad13c473]{height:24px;line-height:20px;font-size:12px;background-color:#000c;display:flex;justify-content:space-around;align-items:center}.cp-layersmap-layer[data-v-ad13c473]{width:60px;height:60px;position:relative;margin-left:2px;margin-top:2px;margin-bottom:2px;cursor:pointer}.cp-layersmap-main-header[data-v-ad13c473]{position:absolute;z-index:1;width:100%;height:16px;line-height:16px;text-align:center;font-size:12px;background-color:#4449}.cp-layersmap-main-image[data-v-ad13c473]{width:60px;height:60px}.cp-layersmap-main-footer[data-v-ad13c473]{position:absolute;bottom:0;z-index:1;width:100%;display:flex;justify-content:center;align-items:center;height:14px;font-size:10px;background-color:#4449}.cp-layersmap-active[data-v-ad13c473]{background-color:#0047e0cc}.cp-layersmap[data-v-ad13c473]{position:absolute;z-index:10;color:#eee;background-color:#000c;border:1px solid rgb(61,64,105);border-radius:4px}.cp-layersmap-main[data-v-ad13c473]{display:flex;justify-content:space-around;padding-right:2px}.czml-config[data-v-4bb4e701]{position:fixed;left:0;bottom:60px;z-index:100;width:60x;background-color:#0006;border-top:1px solid rgb(60,60,60);border-right:1px solid rgb(60,60,60);border-radius:4px;padding:6px;font-size:12px;color:#ccc}.czml-config-title[data-v-4bb4e701]{padding-bottom:6px;border-bottom:1px solid #222222;font-weight:500;font-size:14px}.czml-config-label[data-v-4bb4e701]{color:#87ceeb;padding:4px 0}.czmlBar[data-v-4bb4e701]{position:fixed;bottom:0;z-index:100;height:60px;width:100%;display:flex;justify-content:space-between;flex-direction:row;background-color:#0006;font-size:12px;color:#ccc}.bar-control[data-v-4bb4e701]{width:220px;-webkit-user-select:none;user-select:none}.control-btns[data-v-4bb4e701]{display:flex;justify-content:space-around;align-items:center;padding-top:8px}.control-btns div[data-v-4bb4e701]{width:22px;height:22px;border-radius:2px;display:flex;justify-content:center;align-items:center;background-color:#ffffff4d}.control-btns img[data-v-4bb4e701]{width:14px}.control-bottom[data-v-4bb4e701]{height:30px;display:flex;justify-content:space-between;align-items:center;padding:0 10px;color:#ff0}.bar-timeline[data-v-4bb4e701]{flex:1 1 auto;padding:10px;position:relative}.timeline-left[data-v-4bb4e701]{position:absolute;top:6px;left:10px}.timeline-right[data-v-4bb4e701]{position:absolute;top:6px;right:10px}.timeline-ruler[data-v-4bb4e701]{position:relative;height:26px;margin-top:20px;margin-left:0;border-bottom:1px;border-bottom-style:solid;border-bottom-color:gray}.ruler-label[data-v-4bb4e701]{position:absolute;top:-30px;transform:translate(-25%)}.tick[data-v-4bb4e701]{position:absolute;bottom:0;width:0;height:6px;border-left:1px solid rgba(170,180,190,.45);font-size:10px}.grabbing[data-v-4bb4e701]{cursor:grabbing}.tick-major[data-v-4bb4e701]{height:12px;border-left:1px solid rgba(170,180,190,.45)}.playhead[data-v-4bb4e701]{position:absolute;top:0;bottom:0;width:0;z-index:5;transform:translate(-50%);pointer-events:none}.playhead__tri[data-v-4bb4e701]{position:absolute;top:0;left:70%;width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:8px solid #ffff00;transform:translate(-50%);filter:drop-shadow(0 1px 1px #ffff00)}.playhead__line[data-v-4bb4e701]{position:absolute;top:10px;bottom:0;left:0;width:1px;background:#ff0}@media (max-width: 720px){.czml-config[data-v-4bb4e701]{bottom:120px}.czmlBar[data-v-4bb4e701]{height:120px;flex-direction:column;gap:6px;min-height:0}.bar-control[data-v-4bb4e701]{width:100%;display:flex;justify-content:space-between}.control-btns[data-v-4bb4e701]{width:55%}.control-bottom[data-v-4bb4e701]{flex:1}}
|
package/index.d.ts
CHANGED
|
@@ -3,15 +3,15 @@ import { default as cpRuler } from './src/ruler/Index.vue';
|
|
|
3
3
|
import { default as cpCoord } from './src/coord/Index.vue';
|
|
4
4
|
import { default as cpOverlay } from './src/overlay/Index.vue';
|
|
5
5
|
import { default as cpPin } from './src/pin/Index.vue';
|
|
6
|
-
import { default as
|
|
6
|
+
import { default as cpLayers } from './src/layers/Index.vue';
|
|
7
7
|
import { default as cpCzmlPlayer } from './src/czml/player/Index.vue';
|
|
8
8
|
import { App } from 'vue';
|
|
9
9
|
declare const _default: {
|
|
10
10
|
install: (app: App) => App<any>;
|
|
11
11
|
};
|
|
12
12
|
export default _default;
|
|
13
|
-
export { cpCompass, cpRuler, cpCoord, cpOverlay, cpPin,
|
|
13
|
+
export { cpCompass, cpRuler, cpCoord, cpOverlay, cpPin, cpLayers, cpCzmlPlayer };
|
|
14
14
|
export * from './pin';
|
|
15
|
-
export * from './tianmap';
|
|
16
15
|
export * from './drawer';
|
|
17
16
|
export * from './gauger';
|
|
17
|
+
export * from './layers';
|