Explorar el Código

add terrain name

tags/2.6.1
duanhuyin hace 4 años
padre
commit
c11bb31fb1
Se han modificado 3 ficheros con 3216 adiciones y 3142 borrados
  1. 0
    0
      .babelrc
  2. 3
    2
      modules/viewer/Viewer.js
  3. 3213
    3140
      yarn.lock

.babelrc → .babelrc Ver fichero


+ 3
- 2
modules/viewer/Viewer.js Ver fichero

@@ -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
La diferencia del archivo ha sido suprimido porque es demasiado grande
Ver fichero


Cargando…
Cancelar
Guardar