Skip to content

Release 10.0.0

Compare
Choose a tag to compare
@d-koppenhagen d-koppenhagen released this 22 May 06:42
· 3 commits to main since this release

10.0.0 (2024-05-22)

Bug Fixes

  • update falsy values "0", "false" and "null" (b39d0c6)

Code Refactoring

  • composables: rename composable useLayerInMapOrLayerGroup into useLayer (3a7835c)
  • ol-source-*: move common setup into useSource composable (56b386d), closes #354

Features

  • ol-layer-*: support common events on components (69b37c9)

BREAKING CHANGES

  • composables: The composable useLayerInMapOrLayerGroup was renamed to useLayer
  • ol-source-*: The created Source class from the corresponding OpenLayers source isn't wrapped in a computed anymore but in a shallowRef. This will improve the performance and prevent unneeded re-computations.
    Also, the provided imageLayer references is now wrapped in a Ref which will make it reactive:
    In case the layer changes, the source is updated and applied to the changed layers reference.
    This behavior was already default for all layer types:
    -const layer = inject<ImageLayer<Static> | null>("imageLayer");
    +const layer = inject<Ref<ImageLayer<Static>> | null>("imageLayer");