@xingm/vmap-cesium-toolbar 0.0.3-alpha.5 → 0.0.4-alpha.1

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/README.md CHANGED
@@ -104,6 +104,13 @@ import { initCesium } from '@xingm/vmap-cesium-toolbar';
104
104
  const { viewer } = await initCesium('cesiumContainer', {
105
105
  cesiumToken: 'your_cesium_ion_token',
106
106
  });
107
+
108
+ // 使用天地图时可指定底图类型(默认 imagery)
109
+ const { viewer: tdtViewer } = await initCesium('cesiumContainer', {
110
+ mapType: 'tiandi',
111
+ tdtMapTypeId: 'terrain',
112
+ token: 'your_tianditu_token',
113
+ });
107
114
  ```
108
115
 
109
116
  ## 配置选项
@@ -99,7 +99,7 @@ export declare function useOverlayHelper(viewer: Ref<Cesium.Viewer | undefined>,
99
99
  add: (options: import('../libs/overlay').RingOptions) => Entity;
100
100
  updatePosition: (entity: Entity, position: import('../libs/overlay').OverlayPosition) => void;
101
101
  updateRadius: (entity: Entity, radius: number) => void;
102
- updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').RingOptions, "color" | "showInnerLine" | "lineColor" | "lineStyle" | "lineMaterialMode" | "stripeRepeat" | "dashLength" | "dashPattern" | "gapColor" | "width" | "glowWidth" | "lineWidth" | "glowPower" | "clampToGround" | "segments">>) => void;
102
+ updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').RingOptions, "color" | "showInnerLine" | "lineColor" | "lineStyle" | "lineMaterialMode" | "stripeRepeat" | "dashLength" | "dashPattern" | "gapColor" | "width" | "glowWidth" | "lineWidth" | "glowPower" | "clampToGround" | "segments" | "groundHeightEpsilon">>) => void;
103
103
  setVisible: (entity: Entity, visible: boolean) => void;
104
104
  remove: (entityOrId: Entity | string) => boolean;
105
105
  };
@@ -210,7 +210,7 @@ export declare function useOverlayHelper(viewer: Ref<Cesium.Viewer | undefined>,
210
210
  add: (options: import('../libs/overlay').RingOptions) => Entity;
211
211
  updatePosition: (entity: Entity, position: import('../libs/overlay').OverlayPosition) => void;
212
212
  updateRadius: (entity: Entity, radius: number) => void;
213
- updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').RingOptions, "color" | "showInnerLine" | "lineColor" | "lineStyle" | "lineMaterialMode" | "stripeRepeat" | "dashLength" | "dashPattern" | "gapColor" | "width" | "glowWidth" | "lineWidth" | "glowPower" | "clampToGround" | "segments">>) => void;
213
+ updateStyle: (entity: Entity, options: Partial<Pick<import('../libs/overlay').RingOptions, "color" | "showInnerLine" | "lineColor" | "lineStyle" | "lineMaterialMode" | "stripeRepeat" | "dashLength" | "dashPattern" | "gapColor" | "width" | "glowWidth" | "lineWidth" | "glowPower" | "clampToGround" | "segments" | "groundHeightEpsilon">>) => void;
214
214
  setVisible: (entity: Entity, visible: boolean) => void;
215
215
  remove: (entityOrId: Entity | string) => boolean;
216
216
  };
@@ -70,6 +70,11 @@ declare const enUS: {
70
70
  stop: string;
71
71
  };
72
72
  };
73
+ layers: {
74
+ map_type: {
75
+ place_name: string;
76
+ };
77
+ };
73
78
  draw: {
74
79
  start: {
75
80
  line: string;
@@ -70,6 +70,11 @@ declare const zhCN: {
70
70
  stop: string;
71
71
  };
72
72
  };
73
+ layers: {
74
+ map_type: {
75
+ place_name: string;
76
+ };
77
+ };
73
78
  draw: {
74
79
  start: {
75
80
  line: string;