Use QgsMapLayers as inputs of impact functions