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

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

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);
            }
        });
    }

你可能感兴趣的:(skyline移动端创建一个图片标签)