feat: import native road packages from ZIP
This commit is contained in:
1 parent
009fe34f79
commit
113ea54535
15 files changed
+200
-100
No files matched your search
@@ -19,7 +19,8 @@ const DEFAULT_SETTINGS = {
|
||||
};
|
||||
|
||||
function buildNativeTrafficSimulation(area, options = {}) {
|
||||
const root = area.outputs.nativeRoadDir;
|
||||
const root = options.nativePackage?.rootDir;
|
||||
if (!root) throw new Error("Native traffic simulation requires an imported native road package");
|
||||
const compiledPath = path.join(root, "compiled.json");
|
||||
const signalPath = path.join(root, "traffic-signals.json");
|
||||
const connectorPath = path.join(root, "layers", "connectors.geojson");
|
||||
|
||||
Reference in new issue
Block a user