feat(junction): project advanced facilities and associations
This commit is contained in:
1 parent
61ae90352a
commit
0065c3eaec
9 files changed
+111
-3
No files matched your search
+7
-1
@@ -289,7 +289,7 @@ function state(area, junctionReference = null, debug = false) {
|
||||
}
|
||||
|
||||
function readWorkbenchLayers(nativeDir, osm2streetsRoadSurface) {
|
||||
return {
|
||||
const layers = {
|
||||
nativeRoadSurface: readLayer(path.join(nativeDir, 'layers', 'road_surface.geojson')),
|
||||
edgeLines: readLayer(path.join(nativeDir, 'layers', 'edge_lines.geojson')),
|
||||
nativeSidewalkSurface: readLayer(path.join(nativeDir, 'layers', 'sidewalk_surface.geojson')),
|
||||
@@ -305,6 +305,12 @@ function readWorkbenchLayers(nativeDir, osm2streetsRoadSurface) {
|
||||
osm2streetsRoadSurface:
|
||||
osm2streetsRoadSurface && fs.existsSync(osm2streetsRoadSurface) ? readLayer(osm2streetsRoadSurface) : null,
|
||||
};
|
||||
// Advanced facilities are only projected when compiler layers explicitly
|
||||
// carry their facility kind; these aliases keep the projection read-only.
|
||||
layers.islands = layers.nativeIntersectionSurface;
|
||||
layers.medians = layers.nativeIntersectionSurface;
|
||||
layers.sidewalkTurns = layers.nativeSidewalkSurface;
|
||||
return layers;
|
||||
}
|
||||
|
||||
function activeRevisionFields(area) {
|
||||
|
||||
Reference in new issue
Block a user