您好,可以这样实现:
先获取定位图层的bounds,然后把场景缩放到全球,再飞到图层的bounds。
var bounds = instanceOfLayer3D.get_bounds(); // 获得bounds
var flag = instanceOfScene.viewEntire(); // 缩放到全球
instanceOfFlyingOperator.flyToBounds(bounds, number(Integer)); // 飞行到图层bounds