@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 +7 -0
- package/dist/i18n/en-US.d.ts +5 -0
- package/dist/i18n/zh-CN.d.ts +5 -0
- package/dist/index.es.js +758 -609
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +45 -14
- package/dist/index.umd.js.map +1 -1
- package/dist/libs/CesiumMapLoader.d.ts +1 -0
- package/dist/libs/CesiumMapModel.d.ts +6 -0
- package/dist/libs/toolBar/MapLayersService.d.ts +18 -1
- package/dist/package.json +46 -0
- package/dist/style.css +162 -0
- package/package.json +1 -1
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
|
## 配置选项
|
package/dist/i18n/en-US.d.ts
CHANGED