Hi,
Can I move the overlay switcher from the right to the left side?
Also, can I fix the position or at least the starting location of the description panel?
Cheers,
Allan
Hi,
Can I move the overlay switcher from the right to the left side?
Also, can I fix the position or at least the starting location of the description panel?
Cheers,
Allan
Hi Allan,
Please follow the steps shown as below:
1. Find the CSS file of map control under your project, it should be “~\theme\default\style.css”. Search for the class “.olControlLayerSwitcher”, and change “right” to “left”, just like blow
/**
* Layer switcher
*/
.olControlLayerSwitcher
{
position: absolute;
top: 25px;
left: 0px;
width: 20em;
font-family: sans-serif;
font-weight: bold;
margin-top: 3px;
margin-left: 3px;
margin-bottom: 3px;
font-size: smaller;
color: white;
background-color: transparent;
}
2. Please make sure ResourceDeploymentMode property of map is ResourceDeploymentMode.Manual;
3. Change the icons used in OverlaySwitcher to the right ones, they can be found at “~\theme\default\img\” folder, such as “layer_switcher_maximize.gif” etc.
Hope the above is helpful to you. Thanks,
Johnny