merged latest from master. main change stopped using layer.metadata.name and instead getting feature type from params.