Skip to content

Commit

Permalink
refactor(composables): rename composable useLayerInMapOrLayerGroup
Browse files Browse the repository at this point in the history
…into `useLayer`

BREAKING CHANGE: The composable `useLayerInMapOrLayerGroup` was renamed to `useLayer`
  • Loading branch information
d-koppenhagen committed May 22, 2024
1 parent b39d0c6 commit 3a7835c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/composables/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import useAnimation from "./useAnimation";
import useControl from "./useControl";
import useSource from "./useSource";
import useLayerInMapOrLayerGroup from "./useLayer";
import useLayer from "./useLayer";
import useGeometry from "./useGeometry";
import usePropsAsObjectProperties from "./usePropsAsObjectProperties";

Expand All @@ -12,6 +12,6 @@ export {
useControl,
useGeometry,
usePropsAsObjectProperties,
useLayerInMapOrLayerGroup,
useLayer,
useSource,
};
2 changes: 1 addition & 1 deletion src/composables/useLayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type usePropsAsObjectProperties from "./usePropsAsObjectProperties";
import type { OverviewMap } from "ol/control";
import type { layersCommonDefaultProps } from "@/components/layers/LayersCommonProps";

export default function useLayerInMapOrLayerGroup(
export default function useLayer(
layer: Ref<Layer>,
properties: typeof layersCommonDefaultProps &
ReturnType<typeof usePropsAsObjectProperties>,
Expand Down

0 comments on commit 3a7835c

Please sign in to comment.