mago3djs icon indicating copy to clipboard operation
mago3djs copied to clipboard

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

Open thedevilsgrave opened this issue 4 years ago • 3 comments

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

thedevilsgrave avatar Jul 14 '20 07:07 thedevilsgrave

Hi,

Please tell me english and source code.

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

kwunjaehyun avatar Jul 14 '20 07:07 kwunjaehyun

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

thedevilsgrave avatar Jul 14 '20 08:07 thedevilsgrave

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.

kwunjaehyun avatar Jul 15 '20 05:07 kwunjaehyun