Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
setOperation(e) {
this.selectedOperation = e.target.value;
outLayer.clearLayers();
if (this.selectedOperation === "Union") {
operation = pc.union;
martinezOp = martinez.union;
}
if (this.selectedOperation === "Intersection") {
operation = pc.intersection;
martinezOp = martinez.intersection;
}
if (this.selectedOperation === "XOR") {
operation = pc.xor;
martinezOp = martinez.xor;
}
if (this.selectedOperation === "Difference") {
operation = pc.difference;
martinezOp = martinez.diff;
}
this.runOperation();
},
runOperation() {