skyline for mobile(android)

skyline移动端创建一个图片标签

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

例子演示创建一个图片标签

private void CreateImageLabel() {
        UI.runOnRenderThread(new Runnable() {
            @Override
            public void run() {
                double dXCoord = -122.49460;
                double dYCoord = 37.78816;
                double dAltitude = 100.0;
                int eAltitudeTypeCode = 0;//AltitudeTypeCode.ATC_TERRAIN_RELATIVE;
                double dYaw = 0.0;
                double dPitch = 0.0;
                double dRoll = 0.0;
                double dDistance = 5000;
                // B2. Create Position
                IPosition cPos = ISGWorld.getInstance().getCreator().CreatePosition(dXCoord, dYCoord, dAltitude, eAltitudeTypeCode, dYaw, dPitch, dRoll, dDistance);

                String queryImagePath = TEImageHelper.prepareImageForTE(R.drawable.query);

                ITerrainImageLabel iTerrainImageLabel = ISGWorld.getInstance().getCreator().CreateImageLabel(cPos, queryImagePath);
            }
        });
    }
上一篇 下一篇

猜你喜欢

热点阅读