cesium-navigation icon indicating copy to clipboard operation
cesium-navigation copied to clipboard

Want to shift navigation tool on left side of cesium globe

Open adeelahmed1981 opened this issue 3 years ago • 4 comments

Hi, I want to place navigation tool on left side of cesium globe how can achive this task?waiting for your reply Thanks

adeelahmed1981 avatar Mar 19 '21 07:03 adeelahmed1981

you can achieve this by setting the CSS property left for compass, navigation controls and distance legend, i.e. like this:

<style type="text/css">
.compass {
    left: 0 !important;
}
.navigation-controls {
    left: 30px !important;
}
.distance-legend {
    left: 25px !important;
}
</style>

However, this ist just a quickwin, not a clean and robust solution. But hopefully it fits your needs for the moment.

Larcius avatar Mar 20 '21 21:03 Larcius

you can achieve this by setting the CSS property left for compass and navigation controls, i.e. like this:

<style type="text/css">
.compass {
    left: 0 !important;
}
.navigation-controls {
    left: 30px !important;
}
</style>

However, this ist just a quickwin, not a clean and robust solution. But hopefully it fits your needs for the moment.

Hi @Larcius thanks for your quick response your solution is working i have one more query is there any possibility that we can also move distance legend from right to left as we move compass ? thanks

adeelahmed1981 avatar Apr 04 '21 08:04 adeelahmed1981

oh, i forgot about that. I just updated my answer from march.

Larcius avatar Apr 05 '21 16:04 Larcius

@Larcius thanks for your reply

adeelahmed1981 avatar Apr 05 '21 16:04 adeelahmed1981