@xingm/vmap-cesium-toolbar 0.0.3-alpha.5 → 0.0.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.
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
  ## 配置选项
@@ -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;