首页 / 浏览问题 / 移动GIS / 问题详情
移动端打开场景后,如何定位显示到指定的三维点位置
12EXP 2021年07月20日
使用产品 :supermap imobile10i for android   操作系统win10 x64

1个回答

您好,可以使用scene.flyToPoint(Point3D point)方法飞行到指定位置。

9,127EXP 2021年07月20日

运行程序后为什么打开球面场景显示在地心,fly.ToPoint()没效果

        scene.setWorkspace(workspace);
        if ( workspace.open(workspaceConnectionInfon)){
            if (!scene.open(workspace.getScenes().get(0))){
                Toast.makeText(this, "打开场景失败", Toast.LENGTH_SHORT).show();
                return;
            }
            layerCount=scene.getLayers().getCount();
            layer3Ds=scene.getLayers();
            sceneControl.getScene().flyToPoint(new Point3D(102.49257820, 25.73540740, 500));
            isOpenScene=true;
        }
...