small refactorings

This commit is contained in:
Pieter Vander Vennet 2021-09-18 02:47:22 +02:00
parent e1cc24df2b
commit 6e9c8e2961
3 changed files with 45 additions and 7 deletions

View file

@ -103,11 +103,10 @@ export default class MetaTagging {
if (code === undefined) {
continue;
}
const func = new Function("feat", "return " + code + ";");
try {
const f = (featuresPerLayer, feature: any) => {
try {
let result = func(feature);