我想初始化铯,以便地图以某些特定坐标而不是默认坐标为中心。我有以下初始化代码:
var map = new Cesium.CesiumWidget('map-js');
map.centralBody.terrainProvider = new Cesium.CesiumTerrainProvider({
url : 'http://cesiumjs.org/smallterrain'
});
通常,对于其他映射库,我会在初始化时设置中心,例如在 mapbox 上:
map = L.mapbox.map('map-js', 'api-key').setView([42.12, 12.45], 9);
如何用铯做到这一点?