Update of aspected routing dep

This commit is contained in:
Pieter Vander Vennet 2021-07-27 11:34:39 +02:00
parent 0319f94735
commit f8b7c1061a
3 changed files with 161 additions and 55 deletions

View file

@ -6,7 +6,7 @@ import {Utils} from "../Utils";
import BaseUIElement from "../UI/BaseUIElement";
import List from "../UI/Base/List";
import Title from "../UI/Base/Title";
import {RuleSet} from "aspected-routing"
import AspectedRouting from "aspected-routing"
import {UIEventSourceTools} from "./UIEventSource";
export class ExtraFunction {
@ -173,7 +173,7 @@ export class ExtraFunction {
if (config === undefined) {
return
}
return new RuleSet(config).runProgram(feature.properties)
return new AspectedRouting(config).evaluate(feature.properties)
})
}
}