Commit 41d11ebb authored by Dmitriy Gontsov's avatar Dmitriy Gontsov
Browse files

added missing context param for setup in layer.js

parent c040eafd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@ export default {

    const addLayer = inject("addLayer");

    const { options, methods } = gridLayerSetup(props, leafletRef);
    const { options, methods } = gridLayerSetup(props, leafletRef, context);

    onMounted(async () => {
      const { GridLayer, DomEvent, DomUtil } = await import(
+1 −1
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@ export default {

    const addLayer = inject("addLayer");

    const { methods } = layerGroupSetup(props, leafletRef);
    const { methods } = layerGroupSetup(props, leafletRef, context);

    onMounted(async () => {
      const { layerGroup, DomEvent } = await import(
+3 −2
Original line number Diff line number Diff line
@@ -33,10 +33,11 @@ export const props = {
  },
};

export const setup = (props, leafletRef) => {
export const setup = (props, leafletRef, context) => {
  const { options: layerOptions, methods: layerMethods } = layerSetup(
    props,
    leafletRef
    leafletRef,
    context
  );
  const options = {
    ...layerOptions,
+3 −2
Original line number Diff line number Diff line
@@ -5,10 +5,11 @@ export const props = {
  ...layerProps,
};

export const setup = (props, leafletRef) => {
export const setup = (props, leafletRef, context) => {
  const { options: layerOptions, methods: layerMethods } = layerSetup(
    props,
    leafletRef
    leafletRef,
    context
  );

  const options = {