From 54d77ef09d27c10b9049aecad2a6343b8d45af2d Mon Sep 17 00:00:00 2001 From: que01 Date: Wed, 26 Aug 2026 10:25:08 +0800 Subject: [PATCH] fix: preserve native road render order --- package.json | 2 +- src/compile/layer-manifest.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 2de3753..eec17d3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@osm-asset/road-compiler", - "version": "0.2.0", + "version": "0.2.1", "private": false, "type": "commonjs", "main": "src/index.js", diff --git a/src/compile/layer-manifest.js b/src/compile/layer-manifest.js index 0e9a5fd..d130f18 100644 --- a/src/compile/layer-manifest.js +++ b/src/compile/layer-manifest.js @@ -5,9 +5,9 @@ // to material slot names; the host owns the actual material definitions. const LAYER_REGISTRY = Object.freeze([ { key: "roadSurface", source: "road_surface", role: "surface", materialLayer: "road_surface" }, + { key: "edgeLines", source: "edge_lines", role: "marking", materialLayer: "lane_separators" }, { key: "intersectionSurface", source: "intersection_surface", role: "surface", materialLayer: "intersection_surface" }, { key: "sidewalkSurface", source: "sidewalk_surface", role: "surface", materialLayer: "sidewalks" }, - { key: "edgeLines", source: "edge_lines", role: "marking", materialLayer: "lane_separators" }, { key: "laneSeparators", source: "lane_separators", role: "marking", materialLayer: "lane_separators", splitBy: { prop: "color", cases: [{ match: "yellow", material: "native_lane_separator_yellow" }, { default: true, material: "lane_separators" }] } }, { key: "centerLines", source: "center_lines", role: "marking", materialLayer: "center_lines", splitBy: { prop: "color", cases: [{ match: "white", material: "native_center_line_white" }, { default: true, material: "center_lines" }] } }, { key: "crosswalks", source: "crosswalks", role: "marking", materialLayer: "crosswalks" },