Info component - hslayers/hslayers-ng GitHub Wiki
Info
Config parameters
List of useful config parameters for the info component can be found here:
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({
panelsEnabled: {
compositionLoadingProgress: true //(false by default)
}
});
}
}
If not using HslayersModule containing all components
Add HsInfoModule import:
import {HsInfoModule} from 'hslayers-ng/components/info';
@NgModule({
imports: [HsInfoModule],
})
export class YourAppModule {}
Add HsInfoComponent component:
import {HsLayoutService } from 'hslayers-ng/core';
import {HsInfoModule} from 'hslayers-ng/components/info';
@Component({
selector: 'your-app-component',
templateUrl: 'your-app-component.html',
})
export class YourAppComponent {
constructor(hsLayoutService: HsLayoutService) {
hsLayoutService.createOverlay(HsInfoComponent, {});
}
}