Remove/Reposition Zoom in/out Buttons

287
1
Jump to solution
01-22-2024 09:29 PM
AbdulRaufs
New Contributor II

I am working on this CodePen.

https://codepen.io/vntbstgk-the-decoder/pen/ZEPJBEE

I have created a side bar on right side which is over lapping on Zoom in/out buttons. Can I reposition these buttons to bottom right or if I could them all together?

Thanks.

 

0 Kudos
1 Solution

Accepted Solutions
RalucaNicola1
Esri Contributor

Yes, try `view.ui.move("zoom", "bottom-right");`. See https://developers.arcgis.com/javascript/latest/api-reference/esri-views-ui-UI.html#move 

Btw, you can also use view.padding to change the padding of the map. That will move all controls.

View solution in original post

1 Reply
RalucaNicola1
Esri Contributor

Yes, try `view.ui.move("zoom", "bottom-right");`. See https://developers.arcgis.com/javascript/latest/api-reference/esri-views-ui-UI.html#move 

Btw, you can also use view.padding to change the padding of the map. That will move all controls.