Skip to content

Sidebar component

Filip Leitner edited this page Apr 30, 2024 · 3 revisions

Sidebar

Config parameters

List of useful config parameters for the sidebar component can be found here:

sidebarClosed

sidebarPosition

language

componentsEnabled

panelsEnabled

sidebarToggleable

pureMap

sizeMode

Enable/disable

import {HsConfig} from 'hslayers-ng/config';
@Component({
  selector: 'your-app-component',
  templateUrl: 'your-app-component.html',
})
export class YourAppComponent {
  constructor(hsConfig: HsConfig) {
    this.HsConfig.update({
      componentsEnabled: {
        guiOverlay: true, //(true by default)
        sidebar: true //(true by default)
      },
      sidebarPosition: 'right', ('right' by default),
      pureMap: false (false by default)
    });
  }
}
Clone this wiki locally