Select to view content in your preferred language

How can I disable all the controls on the map?

520
2
Jump to solution
12-22-2022 06:50 AM
AbishekSrikaanth
New Contributor II

Is there a way to disable all the controls on the map and just show the globe on the sceneView?

 

 

Tags (3)
0 Kudos
1 Solution

Accepted Solutions
by Anonymous User
Not applicable

Hey @AbishekSrikaanth

Yes there is a way to do that! Yoy only need to add this line of code:

view.ui.components = [];

 You can also add just some of the components like this: 

view.ui.components = [ "attribution", "compass" ];

For more information check the documentation here: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#ui

I hope this could help, otherwise feel free to ask more questions 🙂

Best, Daniel

View solution in original post

0 Kudos
2 Replies
by Anonymous User
Not applicable

Hey @AbishekSrikaanth

Yes there is a way to do that! Yoy only need to add this line of code:

view.ui.components = [];

 You can also add just some of the components like this: 

view.ui.components = [ "attribution", "compass" ];

For more information check the documentation here: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#ui

I hope this could help, otherwise feel free to ask more questions 🙂

Best, Daniel

0 Kudos
AbishekSrikaanth
New Contributor II

@Anonymous User thanks for the help. that worked. I appreciate it

 

0 Kudos