cesium-pocket 0.5.8-alpha → 0.6.0-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/{LayersManager-DcmcsGva.js → LayersManager-CCCzpWlU.js} +18 -24
- package/index.css +1 -1
- package/index.js +2 -2
- package/package.json +1 -1
- package/tianmap.js +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UrlTemplateImageryProvider as o, WebMercatorTilingScheme as n, WebMapTileServiceImageryProvider as
|
|
1
|
+
import { UrlTemplateImageryProvider as o, WebMercatorTilingScheme as n, WebMapTileServiceImageryProvider as r, Credit as l, Ion as T, IonImageryProvider as m } from "cesium";
|
|
2
2
|
const c = new o({
|
|
3
3
|
url: "https://webst0{s}.is.autonavi.com/appmaptile?style=6&x={x}&y={y}&z={z}",
|
|
4
4
|
subdomains: ["1", "2", "3", "4"],
|
|
@@ -27,8 +27,8 @@ const c = new o({
|
|
|
27
27
|
minimumLevel: 3,
|
|
28
28
|
maximumLevel: 18,
|
|
29
29
|
credit: "高德地图"
|
|
30
|
-
}),
|
|
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=" +
|
|
30
|
+
}), s = "41a84209559237faa6064094bf9dbfcb", M = new r({
|
|
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=" + s,
|
|
32
32
|
layer: "img",
|
|
33
33
|
style: "default",
|
|
34
34
|
format: "image/jpeg",
|
|
@@ -36,8 +36,8 @@ const c = new o({
|
|
|
36
36
|
subdomains: ["t0", "t1", "t2", "t3", "t4", "t5", "t6", "t7"],
|
|
37
37
|
credit: new l("天地图影像"),
|
|
38
38
|
maximumLevel: 18
|
|
39
|
-
}), d = new
|
|
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=" +
|
|
39
|
+
}), d = new r({
|
|
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=" + s,
|
|
41
41
|
layer: "cia",
|
|
42
42
|
style: "default",
|
|
43
43
|
format: "image/jpeg",
|
|
@@ -45,8 +45,8 @@ const c = new o({
|
|
|
45
45
|
subdomains: ["t0", "t1", "t2", "t3", "t4", "t5", "t6", "t7"],
|
|
46
46
|
credit: new l("天地图影像注记"),
|
|
47
47
|
maximumLevel: 18
|
|
48
|
-
}), u = new
|
|
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=" +
|
|
48
|
+
}), u = new r({
|
|
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=" + s,
|
|
50
50
|
layer: "vec",
|
|
51
51
|
//wmts请求的层名称
|
|
52
52
|
style: "default",
|
|
@@ -56,8 +56,8 @@ const c = new o({
|
|
|
56
56
|
subdomains: ["t0", "t1", "t2", "t3", "t4", "t5", "t6", "t7"],
|
|
57
57
|
credit: new l("天地图矢量"),
|
|
58
58
|
maximumLevel: 18
|
|
59
|
-
}), v = new
|
|
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=" +
|
|
59
|
+
}), v = new r({
|
|
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=" + s,
|
|
61
61
|
layer: "vec",
|
|
62
62
|
//wmts请求的层名称
|
|
63
63
|
style: "default",
|
|
@@ -67,8 +67,8 @@ const c = new o({
|
|
|
67
67
|
subdomains: ["t0", "t1", "t2", "t3", "t4", "t5", "t6", "t7"],
|
|
68
68
|
credit: new l("天地图矢量注记"),
|
|
69
69
|
maximumLevel: 18
|
|
70
|
-
}), I = new
|
|
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=" +
|
|
70
|
+
}), I = new r({
|
|
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=" + s,
|
|
72
72
|
layer: "ter",
|
|
73
73
|
style: "default",
|
|
74
74
|
format: "image/jpeg",
|
|
@@ -76,8 +76,8 @@ const c = new o({
|
|
|
76
76
|
subdomains: ["t0", "t1", "t2", "t3", "t4", "t5", "t6", "t7"],
|
|
77
77
|
credit: new l("天地图地形渲晕"),
|
|
78
78
|
maximumLevel: 18
|
|
79
|
-
}), g = new
|
|
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=" +
|
|
79
|
+
}), g = new r({
|
|
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=" + s,
|
|
81
81
|
layer: "cta",
|
|
82
82
|
style: "default",
|
|
83
83
|
format: "image/jpeg",
|
|
@@ -147,25 +147,19 @@ class h {
|
|
|
147
147
|
let e = null;
|
|
148
148
|
switch (i) {
|
|
149
149
|
case a.BING_IMG:
|
|
150
|
-
this.setIonToken(), e = await
|
|
150
|
+
this.setIonToken(), e = await m.fromAssetId(2);
|
|
151
151
|
break;
|
|
152
152
|
case a.BING_IMG_NIGHT:
|
|
153
|
-
this.setIonToken(), e = await
|
|
153
|
+
this.setIonToken(), e = await m.fromAssetId(3812);
|
|
154
154
|
break;
|
|
155
155
|
case a.BING_IMG_S:
|
|
156
|
-
this.setIonToken(), e = await
|
|
156
|
+
this.setIonToken(), e = await m.fromAssetId(2411391);
|
|
157
157
|
break;
|
|
158
158
|
case a.GOOGLE_IMG:
|
|
159
|
-
this.setIonToken(), e = await
|
|
159
|
+
this.setIonToken(), e = await m.fromAssetId(3830182);
|
|
160
160
|
break;
|
|
161
161
|
case a.GOOGLE_IMG_S:
|
|
162
|
-
this.setIonToken(), e = await
|
|
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);
|
|
162
|
+
this.setIonToken(), e = await m.fromAssetId(3830185);
|
|
169
163
|
break;
|
|
170
164
|
case a.AMAP_IMG:
|
|
171
165
|
e = c;
|
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-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-
|
|
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-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-main-image[data-v-ad13c473]{width:60px;height:60px}.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.js
CHANGED
|
@@ -3,8 +3,8 @@ import * as cA from "three";
|
|
|
3
3
|
import { TrianglesDrawMode as EP, TriangleFanDrawMode as mA, TriangleStripDrawMode as _A, Loader as lP, LoaderUtils as rA, FileLoader as $A, Color as G, LinearSRGBColorSpace as K, SpotLight as oP, PointLight as pP, DirectionalLight as uP, MeshBasicMaterial as BA, SRGBColorSpace as gA, MeshPhysicalMaterial as q, Vector2 as AP, Matrix4 as QA, Vector3 as $, Quaternion as PP, InstancedMesh as aP, InstancedBufferAttribute as MP, Object3D as eP, TextureLoader as iP, ImageBitmapLoader as fP, BufferAttribute as EA, InterleavedBuffer as bP, InterleavedBufferAttribute as kP, LinearMipmapLinearFilter as nP, NearestMipmapLinearFilter as mP, LinearMipmapNearestFilter as dP, NearestMipmapNearestFilter as yP, LinearFilter as dA, NearestFilter as tP, RepeatWrapping as yA, MirroredRepeatWrapping as jP, ClampToEdgeWrapping as UP, PointsMaterial as HP, Material as lA, LineBasicMaterial as SP, MeshStandardMaterial as sP, DoubleSide as LP, PropertyBinding as OP, BufferGeometry as qP, SkinnedMesh as hP, Mesh as JP, LineSegments as KP, Line as NP, LineLoop as YP, Points as VP, Group as oA, PerspectiveCamera as xP, MathUtils as GP, OrthographicCamera as ZP, Skeleton as XP, AnimationClip as WP, Bone as FP, InterpolateDiscrete as RP, InterpolateLinear as BP, ColorManagement as hA, Texture as JA, VectorKeyframeTrack as KA, NumberKeyframeTrack as NA, QuaternionKeyframeTrack as YA, FrontSide as _P, Interpolant as $P, Box3 as Ae, Sphere as Pe } from "three";
|
|
4
4
|
import { Viewer as W, Math as CA, Cartesian2 as DA, Cartesian3 as Y, Cartographic as rP, SceneTransforms as ee, Ray as ne, Color as te, ScreenSpaceEventType as pA, ScreenSpaceEventHandler as se, createWorldTerrainAsync as Be, EllipsoidTerrainProvider as re, JulianDate as J, CzmlDataSource as ve } from "cesium";
|
|
5
5
|
import { P as tA, a as VA, b as ge, c as Ce, d as ce, C as xA } from "./index-CcaLwHv1.js";
|
|
6
|
-
import { L as De } from "./LayersManager-
|
|
7
|
-
import { C as Tt } from "./LayersManager-
|
|
6
|
+
import { L as De } from "./LayersManager-CCCzpWlU.js";
|
|
7
|
+
import { C as Tt } from "./LayersManager-CCCzpWlU.js";
|
|
8
8
|
import { C as Et, a as lt, b as ot, D as pt, P as ut, R as at } from "./CircleDrawer-DlT8c84Y.js";
|
|
9
9
|
import { C as it, L as ft, P as bt, a as kt, R as mt } from "./PolygonGaguger-DrRpBgxG.js";
|
|
10
10
|
function GA(D, A) {
|
package/package.json
CHANGED
package/tianmap.js
CHANGED