forked from MapComplete/MapComplete
Update of aspected routing dep
This commit is contained in:
parent
0319f94735
commit
f8b7c1061a
3 changed files with 161 additions and 55 deletions
|
@ -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)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue