Commit 297c6f8d authored by Michael Underwood's avatar Michael Underwood
Browse files

Fix errors unloading map and layer components

parent 8080f3d4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -77,7 +77,7 @@ export default {
    });

    onUnmounted(() => {
      leafletRef.value.off("tileunload", methods.unLoad);
      leafletRef.value.off("tileunload", methods.onUnload);
    });

    return { root, ready, leafletObject: leafletRef };
+1 −0
Original line number Diff line number Diff line
@@ -365,6 +365,7 @@ export default {

    onBeforeUnmount(() => {
      if (blueprint.leafletRef) {
        blueprint.leafletRef.off();
        blueprint.leafletRef.remove();
      }
    });