Gaia3D / mago3djs

3D Rendering Library
http://mago3d.net/
Apache License 2.0
133 stars 55 forks source link

사진 디스플레이에 대한 질문 #788

Open thedevilsgrave opened 4 years ago

thedevilsgrave commented 4 years ago

현재 위치 (경도, 위도) 를 누 르 면 그림 을 표시 합 니 다. 그리고 그림 위 치 는 현재 위치 (경도, 위도) 입 니 다. 같이 끌 수 있 습 견인

kwunjaehyun commented 4 years ago

Hi,

Please tell me english and source code.

I can't understand your question(translation is weird. lol)

thedevilsgrave commented 4 years ago

Hi,

Please tell me english and source code.

I can't understand your question(translation is weird. lol)

My requirement is that when I click on the model, the picture or marker will pop up at the current position, and the marker can be dragged with the model

kwunjaehyun commented 4 years ago

Hi, Please tell me english and source code. I can't understand your question(translation is weird. lol)

My requirement is that when I click on the model, the picture or marker will pop up at the current position, and the marker can be dragged with the model

I will tell you that you are using the master branch version.

First, master version not support draw marker well. so using cesium api. like -> viewer.screenSpaceEventHandler.setInputAction(function(){ //ADD ICON SOURCE, USING CESIUM }, Cesium.ScreenSpaceEventType.LEFT_CLICK);

Second, method of dragging model. run changeObjectMoveAPI(MAGO3D_INSTANCE, "0"), so you can drag model.

and maybe you need model's current position for change position of icon or draw marker.

var model = managerFactory.getMagoManager().hierarchyManager.projectsMap["projectId"]["dataKey"] ; var geographicCoord = model.getNodeGeoLocDataManager().getCurrentGeoLocationData().geographicCoord; <-- current model position(lon lat).

use geographicCoord.