@skzz/components-gis 0.1.2 → 0.1.4

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.
@@ -0,0 +1,2 @@
1
+ /** MVT 面注记叠层:与 MVT 服务共用 dictCode + serviceName 的 WFS GeoJSON 地址 */
2
+ export declare function buildMvtWfsLabelUrl(basePath: string, dictCode: string, serviceName: string, cacheBust?: number): string;
@@ -0,0 +1,9 @@
1
+ import * as Cesium from 'cesium';
2
+ /** Cesium 面 entity 注记落点:ENU 本地米制 polylabel,与渲染几何一致 */
3
+ export declare function cesiumPolygonLabelPosition(entity: {
4
+ polygon?: {
5
+ hierarchy?: {
6
+ getValue?: (time: Cesium.JulianDate) => Cesium.PolygonHierarchy;
7
+ };
8
+ };
9
+ }): Cesium.Cartesian3 | undefined;
@@ -13,11 +13,15 @@ declare const _default: import('vue').DefineComponent<{}, {
13
13
  hiddenValues: unknown[];
14
14
  clampToGround: boolean;
15
15
  token: string;
16
+ directRequest: boolean;
17
+ showProperties: boolean;
18
+ sourceCrs: string;
16
19
  fitToLayer: boolean;
17
20
  fitDuration: number;
18
21
  layerZIndex: number;
19
22
  styleByProperty: Record<string, any>;
20
23
  note: Record<string, any>;
24
+ noteOnly: boolean;
21
25
  $props: {
22
26
  readonly style?: Record<string, any> | undefined;
23
27
  readonly geojson?: string | Record<string, any> | undefined;
@@ -26,11 +30,15 @@ declare const _default: import('vue').DefineComponent<{}, {
26
30
  readonly hiddenValues?: unknown[] | undefined;
27
31
  readonly clampToGround?: boolean | undefined;
28
32
  readonly token?: string | undefined;
33
+ readonly directRequest?: boolean | undefined;
34
+ readonly showProperties?: boolean | undefined;
35
+ readonly sourceCrs?: string | undefined;
29
36
  readonly fitToLayer?: boolean | undefined;
30
37
  readonly fitDuration?: number | undefined;
31
38
  readonly layerZIndex?: number | undefined;
32
39
  readonly styleByProperty?: Record<string, any> | undefined;
33
40
  readonly note?: Record<string, any> | undefined;
41
+ readonly noteOnly?: boolean | undefined;
34
42
  };
35
43
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
36
44
  export default _default;
@@ -10,10 +10,13 @@ declare class ShpZztsLayer {
10
10
  id: any;
11
11
  calTilesUrl: any;
12
12
  tileUrl: any;
13
+ layerDataUrl: any;
13
14
  opacity: number;
14
15
  batchSize: any;
15
16
  transitionDuration: any;
16
- pointSize: any;
17
+ fetchConcurrency: number;
18
+ bulkTileThreshold: number;
19
+ pointSize: number;
17
20
  displayRange: {
18
21
  west: number;
19
22
  south: number;
@@ -21,6 +24,11 @@ declare class ShpZztsLayer {
21
24
  north: number;
22
25
  } | null;
23
26
  _userColor: any;
27
+ outline: {
28
+ color: string;
29
+ width: number;
30
+ } | null;
31
+ outlineHeightOffset: number;
24
32
  dictCode: any;
25
33
  serviceName: any;
26
34
  enableServiceColor: boolean;
@@ -29,7 +37,9 @@ declare class ShpZztsLayer {
29
37
  currentLod: number;
30
38
  lodPrimitives: Map<any, any>;
31
39
  transitionAnimId: number | null;
32
- requestInProgress: boolean;
40
+ tileCache: Map<any, any>;
41
+ bulkCache: Map<any, any>;
42
+ activeAbort: AbortController | null;
33
43
  renderRequestToken: number;
34
44
  debounceTimer: number | null;
35
45
  destroyed: boolean;
@@ -49,6 +59,8 @@ declare class ShpZztsLayer {
49
59
  loadModelColorsByIds(featureIds?: any[]): Promise<Map<any, any>>;
50
60
  /** 按要素解析颜色:服务配色命中 > 用户统一色 > 默认淡蓝 */
51
61
  _resolveFeatureColor(geom: any, colorMap: any): Cesium.Color;
62
+ /** 边线颜色:优先用户配置色,与 WFS/MVT 预览语义一致(不跟随分类填充色) */
63
+ _resolveOutlineColor(): Cesium.Color;
52
64
  _getScreenBounds(): {
53
65
  requestBounds: {
54
66
  west: number;
@@ -66,17 +78,26 @@ declare class ShpZztsLayer {
66
78
  _destroyLodPrimitives(lod: any): void;
67
79
  _clearRenderedPrimitives(): void;
68
80
  _crossFadeLod(oldLod: any, newLod: any): void;
69
- _renderBatched(geometries: any, lodLevel: any, initialAlpha: any, onReady: any, colorMap: any): {
70
- primitive: Cesium.PointPrimitiveCollection;
71
- instanceIds: number[];
72
- instanceColors: Cesium.Color[];
73
- pointPrimitives: Cesium.PointPrimitive[];
74
- pointColors: Cesium.Color[];
75
- }[];
76
- _getVectorTileData(geosot: any, level: any): Promise<{
81
+ /**
82
+ * @param entriesSink 渐进渲染时传入本轮共享的 entries 数组:
83
+ * 多次 flush 的图元累积到同一列表(lodPrimitives 只认这个列表),
84
+ * 不传则使用本次调用的局部列表(一次性渲染路径)。
85
+ */
86
+ _renderBatched(geometries: any, lodLevel: any, initialAlpha: any, onReady: any, colorMap: any, entriesSink: any): any;
87
+ _getVectorTileData(geosot: any, level: any, signal: any): Promise<{
77
88
  geosot: any;
78
89
  data: any;
79
90
  }>;
91
+ /**
92
+ * 拉取单个瓦片并解析为几何体(带 LRU 缓存)。
93
+ * 空瓦片也缓存(空数组):该格网本 LOD 无要素,平移回看时不再重复请求。
94
+ */
95
+ _fetchTileGeometries(geosot: any, level: any, signal: any): Promise<any>;
96
+ /**
97
+ * 整图层批量拉取:新后端 /layer/3d/getVectorLayerData 一次返回该 LOD 全部要素。
98
+ * 与逐瓦片响应同一信封格式,复用同一解析器;结果按 LOD 缓存(仅缓存非空结果)。
99
+ */
100
+ _getLayerGeometries(level: any, signal: any): Promise<any>;
80
101
  loadAndRender(): Promise<void>;
81
102
  _onCameraMoveEnd(): void;
82
103
  _setupMoveHandler(): void;
@@ -1,5 +1,5 @@
1
1
  declare const _default: import('vue').DefineComponent<{}, {
2
- $emit: ((...args: any[]) => any) | ((evt: string, ...args: any) => void);
2
+ $emit: (event: "load-error", ...args: any[]) => void;
3
3
  groupKey: string;
4
4
  stackIndex: number;
5
5
  subStackIndex: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skzz/components-gis",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "type": "module",
5
5
  "main": "./dist/index.umd.js",
6
6
  "module": "./dist/index.es.js",
@@ -34,7 +34,7 @@
34
34
  ],
35
35
  "peerDependencies": {
36
36
  "@element-plus/icons-vue": "^2.3.2",
37
- "@skzz/libs-base": "^0.0.3",
37
+ "@skzz/libs-base": "^0.0.4",
38
38
  "@skzz/libs-gis": "^0.0.1",
39
39
  "@skzz/utils-common": "^0.0.2",
40
40
  "@vueup/vue-quill": "1.2.0",