diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 147fc17..7c9f6ec 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -12,6 +12,11 @@ All notable changes to this project will be documented in this file. --> ## [Unreleased] +### Changed +- Toggle sidebar functionality to work with hasSidebar property + +### Added +- showSidebar property to set default visibility of sidebar ## [1.6.2] - 2022-11-14 diff --git a/README.md b/README.md index 1d48ce8..423a7e9 100644 --- a/README.md +++ b/README.md @@ -129,8 +129,10 @@ class ExampleComponent { @Input() defaultZoom = 14; /* The initial map center on load. */ @Input() mapCenter: Array = [51.215, 4.425]; - /* Show a sidebar next to the map leaflet. A sidebar can contain any additional info you like. */ + /* Shows button to open sidebar if true. A sidebar can contain any additional info you like. */ @Input() hasSidebar = false; + /* If hasSidebar is true this will show whether the sidebar should be visible from the start */ + @Input() showSidebar = false; /* Shows layermangement inside the sidebar. Layermanagement is used to add or remove featurelayers. */ @Input() showLayerManagement = true; /* Show selection tools */ diff --git a/projects/ngx-location-viewer/src/lib/components/layer-management/layer-management.component.html b/projects/ngx-location-viewer/src/lib/components/layer-management/layer-management.component.html index 04ab370..bf24aed 100644 --- a/projects/ngx-location-viewer/src/lib/components/layer-management/layer-management.component.html +++ b/projects/ngx-location-viewer/src/lib/components/layer-management/layer-management.component.html @@ -1,34 +1,21 @@ -