Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
thedevilsgrave opened this issue Jul 14, 2020 · 3 comments
Open

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

thedevilsgrave opened this issue Jul 14, 2020 · 3 comments

Comments

@thedevilsgrave
Copy link

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

@kwunjaehyun
Copy link
Collaborator

Hi,

Please tell me english and source code.

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

@thedevilsgrave
Copy link
Author

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
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants