Sidebar component - hslayers/hslayers-ng GitHub Wiki

Sidebar

Sidebar component

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)
    });
  }
}