GeowayTerrainProvider

new Cesium.GeowayTerrainProvider(options)

Geoway地形
Name Type Description
options Object optional 参数选项:
Name Type Description
connections Array optional 地形服务连接源,数组,为多项连接参数组成的数组。
Name Type Default Description
priority String 0 optional 优先级
url String optional 地形url
rectangle Rectangle new Cesium.Rectangle.fromDegrees(-180, -90, 180, 90) optional 地形范围
minLevel Number 1 optional 地形最小层级
maxLevel Number 10 optional 地形最大层级
tileMatrixLabels Array ['1', '2', '3', '4', '5', '6', '7','8','9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19'] optional 地形金字塔层级 *
Author:
  • liuck
Example:
//示例:
        
        var terrainProvider = new Cesium.GeowayTerrainProvider({ 
            connections: [{ 
                priority: 0,
                url: 'http://www.landcloud.org.cn:81/atlas-ime/rest/globe_world_terrain/terrain' + '/data?level={TileMatrix}&col={TileCol}&row={TileRow}',
                credit: new Cesium.Credit('WorldTerrain'), 
                rectangle: new Cesium.Rectangle.fromDegrees(-180, -90, 180, 90),
                minLevel: 1,
                maxLevel: 10,
                tileMatrixLabels: ['1', '2', '3', '4', '5', '6', '7','8','9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19'] 
            }] 
        });
        viewer.terrainProvider = terrainProvider;
Demo: