Browse Source

add terrain name

tags/2.6.1
duanhuyin 4 years ago
parent
commit
c11bb31fb1
3 changed files with 3216 additions and 3142 deletions
  1. 0
    0
      .babelrc
  2. 3
    2
      modules/viewer/Viewer.js
  3. 3213
    3140
      yarn.lock

.babelrc → .babelrc View File


+ 3
- 2
modules/viewer/Viewer.js View File

@@ -336,13 +336,14 @@ class Viewer {
* @param terrain
* @returns {Viewer}
*/
addTerrain(terrain) {
addTerrain(terrain, param = {}) {
if (!terrain) {
return this
}
let { name = '地形' } = param
this._baseLayerPicker.terrainProviderViewModels.push(
new Cesium.ProviderViewModel({
name: '地形',
name,
creationFunction: () => {
return terrain
}

+ 3213
- 3140
yarn.lock
File diff suppressed because it is too large
View File


Loading…
Cancel
Save