Adding basic imagery添加基本图层
2019-03-04 17:33:21 来源:admin 点击:944
实例
var viewer = new Cesium.Viewer('cesiumContainer', {
imageryProvider : Cesium.createWorldImagery({
style : Cesium.IonWorldImageryStyle.AERIAL_WITH_LABELS
}),
baseLayerPicker : false
}); //先初始化地图
var layers = viewer.scene.imageryLayers; //初始化图层
var blackMarble = layers.addImageryProvider(new Cesium.IonImageryProvider({ assetId: 3812 })); //加载图标
blackMarble.alpha = 0.5; // 调整透明度
blackMarble.brightness = 2.0; //调整对比度
layers.addImageryProvider(new Cesium.SingleTileImageryProvider({
url : '../images/Cesium_Logo_overlay.png', //加载图片路径
rectangle : Cesium.Rectangle.fromDegrees(-75.0, 28.0, -67.0, 29.75) //加载图片坐标
})); //加载图片