Przeglądaj źródła

Merge pull request #74 from mdxiaohu/master

add terrain name options
tags/2.6.1
Caven Chen 4 lat temu
rodzic
commit
552bb970d9
No account linked to committer's email address
2 zmienionych plików z 2 dodań i 2 usunięć
  1. 0
    0
      .babelrc
  2. 2
    2
      modules/viewer/Viewer.js

.babelrc → .babelrc Wyświetl plik


+ 2
- 2
modules/viewer/Viewer.js Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz