Cesium设置默认镜头范围和返回默认地址设置

cesium默认镜头范围设置
Cesium.Camera.DEFAULT_VIEW_RECTANGLE = Cesium.Rectangle.fromDegrees(73.0, 3.0, 135.0, 53.0);//镜头默认范围

默认home按钮返回位置修改

var initialPosition = new Cesium.Cartesian3.fromDegrees(108.845808,34.214282, 17000000);

var homeCameraView = {

  destination : initialPosition,

  };

viewer.scene.camera.setView(homeCameraView);

你可能感兴趣的:(Cesium设置默认镜头范围和返回默认地址设置)