From 4b606e28da3d2bb3f7b1fdd28184daef8be4d91e Mon Sep 17 00:00:00 2001 From: Dongho Kim Date: Wed, 17 Dec 2025 16:42:23 +0900 Subject: [PATCH] update --- Dockerfile | 3 +- frontend/index.html | 47 ++- frontend/src/labels.rs | 175 ++++++----- frontend/src/lib.rs | 263 ++++++++++++++--- frontend/src/pipelines/building.rs | 105 ++++++- frontend/src/pipelines/common.rs | 99 ++++++- frontend/src/pipelines/landuse.rs | 2 +- frontend/src/pipelines/mod.rs | 16 +- frontend/src/pipelines/railway.rs | 6 +- frontend/src/pipelines/roads.rs | 452 +++++++++++++++++++++++++---- frontend/src/pipelines/water.rs | 10 +- importer/src/main.rs | 8 +- 12 files changed, 991 insertions(+), 195 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7c2c708..9620cf3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,8 @@ WORKDIR /app COPY frontend ./frontend COPY backend ./backend # Install wasm-pack -RUN curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh +# Install wasm-pack via cargo (fallback for network issues) +RUN cargo install wasm-pack WORKDIR /app/frontend # Build frontend RUN wasm-pack build --target web --out-name wasm --out-dir ../backend/static diff --git a/frontend/index.html b/frontend/index.html index 6fff079..920cc2f 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -573,6 +573,51 @@ 0 0 4px rgba(255, 255, 255, 0.9); } + /* Road type based sizing - larger roads get larger fonts */ + .label-street-motorway { + font-size: 13px; + font-weight: 600; + color: #444; + } + + .label-street-primary { + font-size: 12px; + font-weight: 600; + color: #555; + } + + .label-street-secondary { + font-size: 11px; + font-weight: 500; + color: #5e5e63; + } + + .label-street-tertiary { + font-size: 10px; + font-weight: 500; + } + + .label-street-residential { + font-size: 9px; + font-weight: 400; + color: #7e7e83; + } + + /* One-way direction arrows */ + .oneway-arrow { + position: absolute; + font-size: 18px; + font-weight: bold; + color: rgba(100, 100, 100, 0.5); + pointer-events: none; + text-shadow: none; + z-index: 5; + } + + [data-theme="dark"] .oneway-arrow { + color: rgba(180, 180, 180, 0.5); + } + /* Apple Maps-style POI labels */ .label-poi { font-size: 11px; @@ -1279,7 +1324,7 @@