1
這裏是panoramagl的代碼,其中圓柱形全景圖與熱點一起工作,但如何通過點擊它來進入下一個全景圖是我的代碼,其中熱點可點擊但不移動到下一個全景圖任何人可以幫助我panoramagl熱點移動到下一個全景圖
PLManager plManager;
PLHotspot hotspot;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
plManager = new PLManager(this);
plManager.setContentView(R.layout.activity_main);
plManager.onCreate();
PLCylindricalPanorama panorama = new PLCylindricalPanorama();
panorama.getCamera().lookAt(0.0f, 200.0f);
panorama.getCamera().setPitchRange(-30.0f, 30.0f);
panorama.setImage(new PLImage(PLUtils.getBitmap(this, R.raw.z), false));
plManager.setPanorama(panorama);
panorama.addHotspot(new PLHotspot(1, new PLImage(PLUtils.getBitmap(this, R.raw.hotspot), false), -10.0f, 180.0f, 1.05f, 1.05f));
hotspot.getOnClick();
}`
感謝您的答覆,但爲時已晚(2個月的延遲) –