-
Notifications
You must be signed in to change notification settings - Fork 20
Search toolbar
Filip Leitner edited this page Apr 30, 2024
·
6 revisions
The search toolbar has the same functionality as the search toolbar, except it is easy to hide and does not take up much screen space.
List of useful config parameters for the search toolbar can be found here:
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: {
toolbar: true, //(true by default)
guiOverlay: true, //(true by default)
searchToolbar: true, //(true by default)
}
});
}
}
Add HsSearchModule import:
import {HsSearchModule} from 'hslayers-ng/components/search';
@NgModule({
imports: [HsSearchModule],
})
export class YourAppModule {}
Add HsSearchToolbarComponent component:
import {HsSearchToolbarComponent} from 'hslayers-ng/components/search';
import {HsLayoutService } from 'hslayers-ng/core';
@Component({
selector: 'your-app-component',
templateUrl: 'your-app-component.html',
})
export class YourAppComponent {
constructor(hsLayoutService: HsLayoutService) {
hsLayoutService.createOverlay(HsSearchToolbarComponent, {});
}
}
Quick Links: Home ➖ App configuration ➖ Layer configuration ➖ Cesium configuration ➖ Composition schema (separate repo)