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

API for hiding and displaying objects #623

Open
dcapeletti opened this issue Dec 5, 2018 · 4 comments
Open

API for hiding and displaying objects #623

dcapeletti opened this issue Dec 5, 2018 · 4 comments

Comments

@dcapeletti
Copy link

Hello, I would like to ask if there is a functionality in the API to hide objects by objectId, by datakey and other arguments.
This functionality seems to me super useful since many times the user wants to hide an object to see others.

Thank you for your help.

@cheonjeongdae
Copy link
Contributor

I used Google Translator.

Sorry for the delay.
I was on business.

There is changePropertyRenderingAPI.
In the data.json file, select any data
  Attributes include any of the following attributes
"test": true
Add

ex)
"children": [
{
"attributes": {
"isPhysical": true,
"nodeType": "3DS",
"test": true
},
"children": [],
"data_key": "kangbukSport_del",
"data_name": "강북스포츠센터",
"mapping_type": "origin",
"heading": 360,
"height": 41,
"latitude": 37.58197511583916,
"longitude": 126.60868083665515,
"pitch": 90,
"roll": 0
},

From cesium.html
Property Rendering
Type test = true, select hide radio and press the change button
If you press it, the data will disappear.
It looks when you are far away ..... it will disappear when you get close.
This lod distance is adjustable.

@dcapeletti
Copy link
Author

Thank you very much for your reply. I will be testing it soon, but I understand that an API could be very useful in this matter.

An API to hide or show objects could be very useful, because you can hide or show objects by objectId. For example, if you want to hide all objects that are part of a building cover, a user could select the objects that are part of it and hide them with an API. Later, if necessary, he could show them again.
Example

hideShowObjects(projectId, objectsId[ ], value)

If the value parameter of the hideShowObjects function is false, the objects are hidden, otherwise they are displayed.

Greetings

@cheonjeongdae
Copy link
Contributor

I used Google Translator.

Thank you for your good feedback.
Any suggestions about development are welcome.

Now we are very busy with other projects.
This API should be created and modified a year and a half ago.
I think we can make more API improvements in 2019.

If there is a demo page that we can see, I think it would be great.

@dcapeletti
Copy link
Author

Hello, thank you for your reply and excuse my delay.

I understand the situation. I will leave this issue open because later I will try to make a demonstration of it.

Greetings

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