skyline for mobile(android)

skyline移动端创建一条线

2019-09-26  本文已影响0人  Darshan

例子演示创建一条线

private void CreateLineLayer() {
        UI.runOnRenderThread(new Runnable() {
            @Override
            public void run() {
                ILineString iLineString = ISGWorld.getInstance().getCreator().getGeometryCreator().CreateLineStringGeometry(new double[]{6.0, 6.0, 0, 11.0, 6.0, 0});//double必须小写,要不然报错根本找不到原因!!!
                ITerrainPolyline iTerrainPolyline = ISGWorld.getInstance().getCreator().CreatePolyline(iLineString.CastTo(IGeometry.class), "#ff8040", AltitudeTypeCode.ATC_ON_TERRAIN, "");
                iTerrainPolyline.getLineStyle().setWidth(100);
                iTerrainPolyline.getLineStyle().setPattern(0xFFFFFFFF);

                ISGWorld.getInstance().getNavigate().FlyTo(iTerrainPolyline);
            }
        });
    }
上一篇 下一篇

猜你喜欢

热点阅读