Commit 689dcb6c authored by Joseph Luk's avatar Joseph Luk
Browse files

Pass context into geoJSONSetup

parent 2996e8a1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ export default {
    const useGlobalLeaflet = inject(GLOBAL_LEAFLET_OPT);
    const addLayer = inject("addLayer");

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

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

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

  const options = {