Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Quick Access feature in LayerSwitcher #1437

Closed
wants to merge 132 commits into from

Commits on Dec 14, 2022

  1. Configuration menu
    Copy the full SHA
    1878774 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    84d70fe View commit details
    Browse the repository at this point in the history

Commits on Feb 8, 2023

  1. Configuration menu
    Copy the full SHA
    8bce472 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    80f8752 View commit details
    Browse the repository at this point in the history

Commits on Mar 15, 2023

  1. Configuration menu
    Copy the full SHA
    c9f125a View commit details
    Browse the repository at this point in the history

Commits on Apr 12, 2023

  1. Configuration menu
    Copy the full SHA
    34eda85 View commit details
    Browse the repository at this point in the history

Commits on Apr 26, 2023

  1. Configuration menu
    Copy the full SHA
    808a58d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    61eccd2 View commit details
    Browse the repository at this point in the history

Commits on May 8, 2023

  1. Configuration menu
    Copy the full SHA
    4d653d9 View commit details
    Browse the repository at this point in the history

Commits on May 10, 2023

  1. Configuration menu
    Copy the full SHA
    2ff4d17 View commit details
    Browse the repository at this point in the history
  2. Fix sublayer visibility

    Resolved an issue where toggling a parent group's visibility did not accurately reflect the visibility of its sublayers.
    
    The `setGroupHidden` and `setGroupVisible` functions were updated to maintain the correct state of `visibleSubLayers`.
    linusfj committed May 10, 2023
    Configuration menu
    Copy the full SHA
    11d35a6 View commit details
    Browse the repository at this point in the history
  3. Merge branch 'feature/1284-add-theme-management' into fix/1300-zoom-l…

    …evel-snackbar-display
    linusfj committed May 10, 2023
    Configuration menu
    Copy the full SHA
    5565441 View commit details
    Browse the repository at this point in the history

Commits on May 23, 2023

  1. Configuration menu
    Copy the full SHA
    86912e2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b40d776 View commit details
    Browse the repository at this point in the history

Commits on May 24, 2023

  1. Configuration menu
    Copy the full SHA
    c44df49 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    be74a34 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f92359b View commit details
    Browse the repository at this point in the history

Commits on Jun 1, 2023

  1. Configuration menu
    Copy the full SHA
    f613734 View commit details
    Browse the repository at this point in the history

Commits on Jun 8, 2023

  1. Add custom SnackbarProvider and useSnackbar hook

    The following features have been added in this commit:
    
    SnackbarProvider.js:
    - Create `SnackbarContext` to share snackbar state and controls among components.
    - Implement `SnackbarProvider` component to set up `SnackbarContext` provider using the `useSnackbar` hook from `notistack` for snackbar controls.
    - Initialize shared state (`messageItems`) to hold list of messages for snackbar display.
    - Utilize `NotistackSnackbarProvider` to render the snackbar and provide the shared state and functions through `SnackbarContext`, enabling access to snackbar controls and shared state in child components.
    
    useSnackbar.js:
    - Create `useSnackbar` custom hook to manage snackbar messages with methods for adding (`addToSnackbar`), removing (`removeFromSnackbar`), hiding (`hideSnackbar`), displaying snackbar messages without storing (`displaySnackbar`) and clearing all messages (`clearAllMessages`).
    - Implement functionality to handle group and layer specific snackbar messages for visibility notification of layers at different zoom levels.
    - Include handling for non-grouped messages, displaying individual messages as standalone notifications.
    - Add a close action button to each snackbar message and enable automatic control of snackbar visibility duration.
    
    App.js:
    - Update `SnackbarProvider` import statement to use the `SnackbarProvider` component.
    linusfj committed Jun 8, 2023
    Configuration menu
    Copy the full SHA
    f43bb02 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    84bdc0b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3009b74 View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2023

  1. Configuration menu
    Copy the full SHA
    bbca267 View commit details
    Browse the repository at this point in the history

Commits on Jun 16, 2023

  1. Add queue system to handle state updates

    Implement a queue-based system to manage state updates in the `useSnackbar` function to solve race conditions.
    
    Changes include:
    1. Create a new `updateQueue` ref to hold all state update operations.
    2. Adjust `addToSnackbar` and `removeFromSnackbar` to push their state update functions into `updateQueue`, rather than executing them directly.
    3. Add a new function `processQueue` that takes the next update function from the queue and executes it.
    4. Call `processQueue` in `addToSnackbar` and `removeFromSnackbar` after their update is pushed into the queue, starting the processing of queued updates.
    linusfj committed Jun 16, 2023
    Configuration menu
    Copy the full SHA
    94da8b4 View commit details
    Browse the repository at this point in the history
  2. Implement useSnackbar hook and fix logic

    1. Import and implement `useSnackbar` custom hook for managing notifications. This enables addition, removal, and display of Snackbar messages.
    2. Update the `listenToZoomChange` and `zoomEndHandler` functions to effectively handle zoom level changes and visibility of the layer at the current zoom level.
    3. Refactor render logic to adjust CheckBoxIcon's color based on layer visibility, type, and zoom level.
    linusfj committed Jun 16, 2023
    Configuration menu
    Copy the full SHA
    0827a5d View commit details
    Browse the repository at this point in the history
  3. Improve layer interactivity and Snackbar handling

    Changes include:
    1. Import and implement `useSnackbar` custom hook in GroupLayer for handling notifications.
    2. Use a custom hook within a `useEffect` to remove layer captions from the Snackbar message when the visibility of sublayers in a group changes.
    3. Update the `handleLayerItemClick` method in GroupLayer to manage visibility toggling of group layers and remove the appropriate layer captions from the Snackbar message.
    4. Pass `zoomVisible` state as a prop from GroupLayer to SubLayerItem component to ensure consistent layer visibility management.
    5. Modify the `getLayerToggleIcon` function in SubLayerItem to adjust the icon color based on the zoom visibility.
    linusfj committed Jun 16, 2023
    Configuration menu
    Copy the full SHA
    9e9ee97 View commit details
    Browse the repository at this point in the history
  4. Integrate Snackbar clearing in MapCleaner

    Import `useSnackbar` in MapCleaner to use `clearAllMessages` that clears all Snackbar messages.
    linusfj committed Jun 16, 2023
    Configuration menu
    Copy the full SHA
    5e22c01 View commit details
    Browse the repository at this point in the history
  5. Merge branch 'fix/1300-zoom-level-snackbar-display' into feature/1284…

    …-add-theme-management
    linusfj committed Jun 16, 2023
    Configuration menu
    Copy the full SHA
    2eef590 View commit details
    Browse the repository at this point in the history

Commits on Jul 21, 2023

  1. Add features for Quick Layers management in admin

    Changes include:
    - Add features that allow users to create new `Quick Layers` by inputting data into fields.
    - Ability to add and delete layers.
    - Import and validate JSON data.
    - Automatically generate unique IDs for each `Quick Layer`.
    - All `Quick Layers` are displayed in a list.
    - Filter feature to search through the list of `Quick Layers`.
    - A success message is displayed if the save or import was successful, and an error message is shown if the save or import failed.
    linusfj committed Jul 21, 2023
    Configuration menu
    Copy the full SHA
    716db7d View commit details
    Browse the repository at this point in the history
  2. Add classes for Quick Layers structure

    Add new classes for managing Quick Layers in the backend.
    
    Changes include:
    `LayerMenuOptions.cs`: New property `quickLayersPresets` to store a list of `Quick Layer` presets.
    `QuickLayer.cs`: This class defines the structure of a `Quick Layer`.
    `QuickLayerMetadata.cs`: This class holds metadata about a `Quick Layer`.
    `QuickLayerPreset.cs`: This class represents a `Quick Layer` preset.
    linusfj committed Jul 21, 2023
    Configuration menu
    Copy the full SHA
    32d258f View commit details
    Browse the repository at this point in the history

Commits on Aug 8, 2023

  1. Configuration menu
    Copy the full SHA
    c85a412 View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2023

  1. Add settings for Quick Layers in admin

    Changes include:
    - Add toggle options to enable and configure Quick Layers in admin.
    - Add informative tooltips.
    - Update `LayerMenuOptions.cs` to include properties for managing Quick Layer configurations.
    linusfj committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    46070a5 View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2023

  1. Configuration menu
    Copy the full SHA
    d2423e6 View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2023

  1. Configuration menu
    Copy the full SHA
    4c172fd View commit details
    Browse the repository at this point in the history

Commits on Sep 1, 2023

  1. Merge remote-tracking branch 'origin/feature/1237-update-active-tab' …

    …into feature/1380-quick-layers-in-layerswitcher
    linusfj committed Sep 1, 2023
    Configuration menu
    Copy the full SHA
    7d5da82 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'feature/1284-add-theme-management' into feature/1380-qu…

    …ick-layers-in-layerswitcher
    linusfj committed Sep 1, 2023
    Configuration menu
    Copy the full SHA
    a819b1d View commit details
    Browse the repository at this point in the history
  3. Merge branch 'feature/1296-search-in-layerswitcher' into feature/1380…

    …-quick-layers-in-layerswitcher
    linusfj committed Sep 1, 2023
    Configuration menu
    Copy the full SHA
    f94527c View commit details
    Browse the repository at this point in the history
  4. Merge remote-tracking branch 'origin/feature/1365-quick-layers-admin'…

    … into feature/1380-quick-layers-in-layerswitcher
    linusfj committed Sep 1, 2023
    Configuration menu
    Copy the full SHA
    c38e6a4 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6fb5394 View commit details
    Browse the repository at this point in the history
  6. Merge branch 'feature/1296-search-in-layerswitcher' into feature/1380…

    …-quick-layers-in-layerswitcher
    linusfj committed Sep 1, 2023
    Configuration menu
    Copy the full SHA
    ae19bee View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2023

  1. Configuration menu
    Copy the full SHA
    c940da0 View commit details
    Browse the repository at this point in the history
  2. legendimage pl

    dennisbergstrom committed Sep 15, 2023
    Configuration menu
    Copy the full SHA
    3f01435 View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2023

  1. Configuration menu
    Copy the full SHA
    527fb6f View commit details
    Browse the repository at this point in the history
  2. Remove unused option in admin

    linusfj committed Sep 20, 2023
    Configuration menu
    Copy the full SHA
    a91776a View commit details
    Browse the repository at this point in the history
  3. Merge branch 'feature/1296-search-in-layerswitcher' into feature/1380…

    …-quick-layers-in-layerswitcher
    linusfj committed Sep 20, 2023
    Configuration menu
    Copy the full SHA
    9409995 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5bdac0e View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2023

  1. Configuration menu
    Copy the full SHA
    2ce31b6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7c6a076 View commit details
    Browse the repository at this point in the history

Commits on Sep 27, 2023

  1. Configuration menu
    Copy the full SHA
    e3a9615 View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2023

  1. Configuration menu
    Copy the full SHA
    9e498a3 View commit details
    Browse the repository at this point in the history

Commits on Oct 10, 2023

  1. Configuration menu
    Copy the full SHA
    30bc582 View commit details
    Browse the repository at this point in the history
  2. lazyload legendimages

    dennisbergstrom committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    dbd7b0a View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2023

  1. Merge branch 'feature/1296-search-in-layerswitcher' into feature/1380…

    …-quick-layers-in-layerswitcher
    linusfj committed Oct 11, 2023
    Configuration menu
    Copy the full SHA
    703584e View commit details
    Browse the repository at this point in the history
  2. Merge branch 'feature/1296-search-in-layerswitcher' into feature/1380…

    …-quick-layers-in-layerswitcher
    linusfj committed Oct 11, 2023
    Configuration menu
    Copy the full SHA
    c878153 View commit details
    Browse the repository at this point in the history

Commits on Oct 18, 2023

  1. Configuration menu
    Copy the full SHA
    3a9ecac View commit details
    Browse the repository at this point in the history

Commits on Oct 23, 2023

  1. Merge remote-tracking branch 'origin/feature/1380-quick-layers-in-lay…

    …erswitcher' into fix/1300-zoom-level-snackbar-display
    linusfj committed Oct 23, 2023
    Configuration menu
    Copy the full SHA
    3333329 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    986411f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9560016 View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2023

  1. Optimize layer toggling and code maintainability

    Refactor the codebase to improve maintainability and enhance performance to address issues encountered when toggling multiple layers.
    linusfj committed Oct 24, 2023
    Configuration menu
    Copy the full SHA
    a718d81 View commit details
    Browse the repository at this point in the history

Commits on Oct 25, 2023

  1. Position snackbar at bottom

    linusfj committed Oct 25, 2023
    Configuration menu
    Copy the full SHA
    08a7dfb View commit details
    Browse the repository at this point in the history
  2. Remove unused variables

    linusfj committed Oct 25, 2023
    Configuration menu
    Copy the full SHA
    2cd3e34 View commit details
    Browse the repository at this point in the history

Commits on Oct 31, 2023

  1. Configuration menu
    Copy the full SHA
    518b9ee View commit details
    Browse the repository at this point in the history

Commits on Nov 1, 2023

  1. Configuration menu
    Copy the full SHA
    5e86755 View commit details
    Browse the repository at this point in the history

Commits on Nov 2, 2023

  1. Merge branch 'feature/1296-search-in-layerswitcher' into feature/1380…

    …-quick-layers-in-layerswitcher
    linusfj committed Nov 2, 2023
    Configuration menu
    Copy the full SHA
    e7dba5a View commit details
    Browse the repository at this point in the history

Commits on Nov 3, 2023

  1. Merge remote-tracking branch 'origin/fix/1300-zoom-level-snackbar-dis…

    …play' into feature/1380-quick-layers-in-layerswitcher
    linusfj committed Nov 3, 2023
    Configuration menu
    Copy the full SHA
    16813a3 View commit details
    Browse the repository at this point in the history
  2. Add condition for when to display snackbar

    Update the logic for triggering the snackbar notifications in the map view. The snackbar can be configured to appear on both click and zoom events, or only on click events.
    linusfj committed Nov 3, 2023
    Configuration menu
    Copy the full SHA
    0b1200c View commit details
    Browse the repository at this point in the history
  3. Add admin setting for snackbar display conditions

    Add setting in admin to control snackbar visibility on map events, enabling configuration for triggers on click and/or zoom interactions.
    linusfj committed Nov 3, 2023
    Configuration menu
    Copy the full SHA
    1cad7b5 View commit details
    Browse the repository at this point in the history
  4. Add new operation in snackbar logic

    Introduce a new `ADD_ONLY` operation type to the useSnackbar hook, enabling the queuing of snackbar messages without automatically displaying them.
    linusfj committed Nov 3, 2023
    Configuration menu
    Copy the full SHA
    f364cc0 View commit details
    Browse the repository at this point in the history
  5. Merge remote-tracking branch 'origin/fix/1300-zoom-level-snackbar-dis…

    …play' into feature/1380-quick-layers-in-layerswitcher
    linusfj committed Nov 3, 2023
    Configuration menu
    Copy the full SHA
    5ddf9d6 View commit details
    Browse the repository at this point in the history

Commits on Nov 8, 2023

  1. Configuration menu
    Copy the full SHA
    717fd18 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    675bf2a View commit details
    Browse the repository at this point in the history

Commits on Nov 9, 2023

  1. snackbar position

    dennisbergstrom committed Nov 9, 2023
    Configuration menu
    Copy the full SHA
    3dfa446 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d7ffc12 View commit details
    Browse the repository at this point in the history

Commits on Nov 10, 2023

  1. Configuration menu
    Copy the full SHA
    1afe223 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8e44296 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    189b88a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1e1276e View commit details
    Browse the repository at this point in the history

Commits on Nov 13, 2023

  1. Add admin settings and update parameter names

    - Add `lockDrawOrderBaselayer` and `drawOrderSwitchInfoText` settings in admin.
    - Rename multiple parameters for better clarity.
    linusfj committed Nov 13, 2023
    Configuration menu
    Copy the full SHA
    73c65f0 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'feature/1365-quick-layers-admin' into feature/1380-quic…

    …k-layers-in-layerswitcher
    linusfj committed Nov 13, 2023
    Configuration menu
    Copy the full SHA
    f6da71f View commit details
    Browse the repository at this point in the history
  3. Merge remote-tracking branch 'origin/feature/1296-search-in-layerswit…

    …cher' into feature/1380-quick-layers-in-layerswitcher
    linusfj committed Nov 13, 2023
    Configuration menu
    Copy the full SHA
    5faf2d7 View commit details
    Browse the repository at this point in the history

Commits on Nov 15, 2023

  1. Improve Quick Layer management and UI in admin

    This commit includes:
    - Update text and UI components.
    - Automatically extract and fill title and description fields during JSON file loading.
    - Add an edit mode for theme modifications.
    - Use the Chip component for displaying keywords.
    - Update button colors.
    - Implement a confirmation dialog for layer deletions.
    linusfj committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    8fe2a0e View commit details
    Browse the repository at this point in the history
  2. Merge branch 'feature/1365-quick-layers-admin' into feature/1380-quic…

    …k-layers-in-layerswitcher
    linusfj committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    b05f919 View commit details
    Browse the repository at this point in the history
  3. cql-filter fix

    dennisbergstrom committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    7146abf View commit details
    Browse the repository at this point in the history
  4. Merge branch 'feature/1296-search-in-layerswitcher' of https://github…

    ….com/hajkmap/Hajk into feature/1296-search-in-layerswitcher
    dennisbergstrom committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    202223b View commit details
    Browse the repository at this point in the history
  5. download link fix

    dennisbergstrom committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    e851d28 View commit details
    Browse the repository at this point in the history

Commits on Nov 16, 2023

  1. Merge branch 'feature/1296-search-in-layerswitcher' into feature/1380…

    …-quick-layers-in-layerswitcher
    linusfj committed Nov 16, 2023
    Configuration menu
    Copy the full SHA
    9df44a1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    072ea82 View commit details
    Browse the repository at this point in the history
  3. Restore setting in admin

    Reintroduce the `enableTransparencySlider` property to the `settings` object. The property was removed in a previous commit.
    linusfj committed Nov 16, 2023
    Configuration menu
    Copy the full SHA
    c247c40 View commit details
    Browse the repository at this point in the history
  4. Merge branch 'feature/1365-quick-layers-admin' into feature/1380-quic…

    …k-layers-in-layerswitcher
    linusfj committed Nov 16, 2023
    Configuration menu
    Copy the full SHA
    0a64439 View commit details
    Browse the repository at this point in the history

Commits on Nov 17, 2023

  1. Configuration menu
    Copy the full SHA
    617dcf3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2cb7993 View commit details
    Browse the repository at this point in the history
  3. Update tooltip text

    linusfj committed Nov 17, 2023
    Configuration menu
    Copy the full SHA
    21e5784 View commit details
    Browse the repository at this point in the history

Commits on Nov 21, 2023

  1. Add CQL filter option in admin

    This commit includes:
    - Add new option for CQL filter visibility in the admin UI.
    - Update `cqlFilterVisible` configuration to be sourced from `layerswitcher` tool.
    - Add `cqlFilterVisible` boolean property for backend configuration.
    linusfj committed Nov 21, 2023
    Configuration menu
    Copy the full SHA
    d06d087 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0504dea View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    bdeba7e View commit details
    Browse the repository at this point in the history

Commits on Nov 22, 2023

  1. Configuration menu
    Copy the full SHA
    42de31c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b4864a3 View commit details
    Browse the repository at this point in the history
  3. Merge branch 'feature/1296-search-in-layerswitcher' into feature/1380…

    …-quick-layers-in-layerswitcher
    linusfj committed Nov 22, 2023
    Configuration menu
    Copy the full SHA
    4f99815 View commit details
    Browse the repository at this point in the history

Commits on Nov 23, 2023

  1. Remove parameter from layers config

    - Remove `minMaxZoomAlertOnToggleOnly` from individual layer in the layers config.
    - The `minMaxZoomAlertOnToggleOnly` parameter is managed in the map config, specifically within the `layerswitcher` object.
    linusfj committed Nov 23, 2023
    Configuration menu
    Copy the full SHA
    1e45814 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'feature/1365-quick-layers-admin' into feature/1380-quic…

    …k-layers-in-layerswitcher
    linusfj committed Nov 23, 2023
    Configuration menu
    Copy the full SHA
    b68d812 View commit details
    Browse the repository at this point in the history

Commits on Nov 24, 2023

  1. Merge branch 'feature/1284-add-theme-management' into feature/1380-qu…

    …ick-layers-in-layerswitcher
    linusfj committed Nov 24, 2023
    Configuration menu
    Copy the full SHA
    a16370e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c322162 View commit details
    Browse the repository at this point in the history

Commits on Nov 29, 2023

  1. Configuration menu
    Copy the full SHA
    1154c2b View commit details
    Browse the repository at this point in the history

Commits on Nov 30, 2023

  1. Configuration menu
    Copy the full SHA
    b029254 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'feature/1296-search-in-layerswitcher' into feature/1380…

    …-quick-layers-in-layerswitcher
    linusfj committed Nov 30, 2023
    Configuration menu
    Copy the full SHA
    00d9dcb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b478432 View commit details
    Browse the repository at this point in the history
  4. Merge branch 'feature/1296-search-in-layerswitcher' into feature/1380…

    …-quick-layers-in-layerswitcher
    linusfj committed Nov 30, 2023
    Configuration menu
    Copy the full SHA
    92d47b4 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    98b51dd View commit details
    Browse the repository at this point in the history

Commits on Dec 5, 2023

  1. Configuration menu
    Copy the full SHA
    b7dd726 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    49abd4b View commit details
    Browse the repository at this point in the history

Commits on Dec 6, 2023

  1. Merge branch 'feature/1296-search-in-layerswitcher' into feature/1380…

    …-quick-layers-in-layerswitcher
    linusfj committed Dec 6, 2023
    Configuration menu
    Copy the full SHA
    36db247 View commit details
    Browse the repository at this point in the history

Commits on Dec 15, 2023

  1. Update package.json dependencies

    This commit includes changes to keep the package.json file up-to-date with the current version from the develop branch.
    linusfj committed Dec 15, 2023
    Configuration menu
    Copy the full SHA
    9cae569 View commit details
    Browse the repository at this point in the history

Commits on Jan 10, 2024

  1. Add showFilter parameter to admin settings

    Add a new parameter 'showFilter' in the admin settings. This parameter controls whether the filter functionality is enabled in the LayerSwitcher component or not.
    linusfj committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    06dc0ec View commit details
    Browse the repository at this point in the history
  2. Change LayerGroup from PureComponent to Component

    Update the LayerGroup class to extend from React.Component instead of React.PureComponent. This change is implemented to address a specific bug where certain search results were not resetting correctly after the search field was cleared in the LayerSwitcher. The issue was occurring in complex layer structures composed of at least two groups.
    
    By changing to React.Component, the LayerGroup is now capable of a more thorough comparison of props, ensuring that the component re-renders appropriately when internal state changes occur in complex hierarchical structures.
    linusfj committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    b2de348 View commit details
    Browse the repository at this point in the history

Commits on Jan 16, 2024

  1. Resolve ESLint errors and implement useCallback

    Optimize performance by utilizing `useCallback` and update `useEffect` dependencies to resolve ESLint errors.
    linusfj committed Jan 16, 2024
    Configuration menu
    Copy the full SHA
    ecd64cc View commit details
    Browse the repository at this point in the history
  2. Add default values to simpleMapConfig.json

    Add default values to various configuration settings in `simpleMapConfig.json`. A notable addition is an example for the `quickLayersPresets`.
    linusfj committed Jan 16, 2024
    Configuration menu
    Copy the full SHA
    6326a5f View commit details
    Browse the repository at this point in the history

Commits on Jan 19, 2024

  1. Configuration menu
    Copy the full SHA
    dc2d20b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a550f07 View commit details
    Browse the repository at this point in the history

Commits on Jan 23, 2024

  1. Add group expansion and layer filter

    This commit improves the LayerSwitcher's behavior by introducing auto-expansion of groups during filtering and ensuring a clean and organized view when the filter is cleared.
    
    Changes made:
    - Enabled auto-expansion of parent groups when a filter match is found within nested layers, improving the visibility of search results.
    - Optimized filter handling by ensuring groups that contain matched layers are expanded during filtering.
    - Introduced a reset mechanism to collapse all groups and clear layer filtering states when the filter input is cleared, preventing the display of an unnecessarily long and cluttered list.
    linusfj committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    71f12bf View commit details
    Browse the repository at this point in the history
  2. Enable detail view for system layers

    - Enabled detailed view toggle for system layers.
    - Ensured CQL filter and Quick Access button are conditionally displayed based on layer type.
    - Improved code robustness for handling undefined properties in related components.
    linusfj committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    cad705f View commit details
    Browse the repository at this point in the history

Commits on Jan 25, 2024

  1. Merge remote-tracking branch 'origin/develop' into feature/1380-quick…

    …-layers-in-layerswitcher
    linusfj committed Jan 25, 2024
    Configuration menu
    Copy the full SHA
    64fda7e View commit details
    Browse the repository at this point in the history

Commits on Feb 1, 2024

  1. Change to PureComponent and fix clearing filter

    - Converted LayerGroup back from React.Component to React.PureComponent.
    - Resolved an issue where clearing the filter did not correctly reset the list of layers and groups. This was due to the state not being updated properly in the case of nested structures (groups, layers, sublayers).
    - Enhanced the `resetFilterStatus` method to ensure proper resetting of the filter status. Now, it recursively marks each node as filtered (`isFiltered = true`) and collapsed (`isExpanded = false`). This ensures that the filter status is correctly propagated to all child components.
    - Updated the `handleFilterValueChange` method to create a new layer tree structure before resetting the filter status. This change involves creating a shallow copy of each top-level node and applying `resetFilterStatus` to update the filter status throughout the tree.
    linusfj committed Feb 1, 2024
    Configuration menu
    Copy the full SHA
    a06c26f View commit details
    Browse the repository at this point in the history

Commits on Feb 6, 2024

  1. Add 'information' as supported tool

    The 'information' tool, if present in the mapConfig, is recognized as a supported tool and not flagged as unsupported.
    
    Closes #1118.
    linusfj committed Feb 6, 2024
    Configuration menu
    Copy the full SHA
    0fb1686 View commit details
    Browse the repository at this point in the history
  2. Revert "Add 'information' as supported tool"

    This reverts commit 0fb1686.
    linusfj committed Feb 6, 2024
    Configuration menu
    Copy the full SHA
    25ff4ac View commit details
    Browse the repository at this point in the history
  3. Fix visibility of last item in background layers

    Adjust the padding-bottom property of an element to ensure the last list item in the background layers tab is fully visible.
    linusfj committed Feb 6, 2024
    Configuration menu
    Copy the full SHA
    4dab50a View commit details
    Browse the repository at this point in the history

Commits on Feb 7, 2024

  1. Keep system layers after reset in LayerPackage

    Issue:
    After loading a layer package (theme), all system layers were inadvertently removed from the map, which prevented them from being added again afterwards.
    
    Solution:
    The `resetVisibleLayers` function was updated to keep layers marked as 'system'. This adjustment ensures that system layers are not affected during the process of resetting layers.
    linusfj committed Feb 7, 2024
    Configuration menu
    Copy the full SHA
    c346e7e View commit details
    Browse the repository at this point in the history

Commits on Feb 9, 2024

  1. Configuration menu
    Copy the full SHA
    6729b09 View commit details
    Browse the repository at this point in the history

Commits on Feb 20, 2024

  1. Refactor useEffect hooks for performance

    This commit splits the previously combined `useEffect` into separate hooks. It also addresses a critical performance issue where the component could enter an infinite rendering loop, leading to a "Maximum update depth exceeded" error.
    linusfj committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    2455ebd View commit details
    Browse the repository at this point in the history
  2. Enhance layer filtering in LayerSwitcherView

    This commit improves the filter logic within the `LayerSwitcherView component. Now, when a group's name matches the filter text, all layers and subgroups within that group are made visible, even if they do not individually match the filter text.
    
    Key changes include:
    - Filter matches both up and down the hierarchy, ensuring parent groups expand to reveal matching children and that all items within a matching group are shown.
    - Updating the `filterTree` function to consider matches on parent nodes and apply visibility and expansion accordingly.
    linusfj committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    42f4189 View commit details
    Browse the repository at this point in the history
  3. Resolve ESLint errors

    linusfj committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    1bb2feb View commit details
    Browse the repository at this point in the history

Commits on Feb 22, 2024

  1. Configuration menu
    Copy the full SHA
    87029fa View commit details
    Browse the repository at this point in the history

Commits on Feb 28, 2024

  1. Configuration menu
    Copy the full SHA
    42aa21b View commit details
    Browse the repository at this point in the history

Commits on Feb 29, 2024

  1. Keep system layers after reset in Favorites

    After loading a `Favorite`, all system layers were inadvertently removed from the map, which prevented them from being added again afterwards.
    linusfj committed Feb 29, 2024
    Configuration menu
    Copy the full SHA
    89a30e3 View commit details
    Browse the repository at this point in the history