From a75c3fd896c40b0cdade42014d8d3823f39b66f4 Mon Sep 17 00:00:00 2001
From: math-pixel <59537610+math-pixel@users.noreply.github.com>
Date: Thu, 28 May 2026 07:54:47 +0200
Subject: [PATCH] uptd : change location of map_backougnround & fix : remove
old netshader into world tsx
---
public/{ => assets/gps}/map_background.png | 0
src/components/ebike/Ebike.tsx | 2 +-
src/pages/backgroundmap/page.tsx | 2 +-
src/world/World.tsx | 1 -
src/world/debug/TestMap.tsx | 2 +-
5 files changed, 3 insertions(+), 4 deletions(-)
rename public/{ => assets/gps}/map_background.png (100%)
diff --git a/public/map_background.png b/public/assets/gps/map_background.png
similarity index 100%
rename from public/map_background.png
rename to public/assets/gps/map_background.png
diff --git a/src/components/ebike/Ebike.tsx b/src/components/ebike/Ebike.tsx
index 3bb9d2c..cca34e5 100644
--- a/src/components/ebike/Ebike.tsx
+++ b/src/components/ebike/Ebike.tsx
@@ -243,7 +243,7 @@ export function Ebike({ position }: EbikeProps): React.JSX.Element {
height={0.8}
startPos={gpsStartPos}
destPos={destPos}
- mapImageUrl="/map_background.png"
+ mapImageUrl="/assets/gps/map_background.png"
worldBounds={{
minX: -166,
maxX: 163,
diff --git a/src/pages/backgroundmap/page.tsx b/src/pages/backgroundmap/page.tsx
index b802a1f..9be4b82 100644
--- a/src/pages/backgroundmap/page.tsx
+++ b/src/pages/backgroundmap/page.tsx
@@ -101,7 +101,7 @@ function CameraManager({
const dataUrl = gl.domElement.toDataURL("image/png");
const a = document.createElement("a");
a.href = dataUrl;
- a.download = "map_background.png";
+ a.download = "/assets/gps/map_background.png";
a.click();
};
return () => { delete (window as any).downloadMapScreenshot; };
diff --git a/src/world/World.tsx b/src/world/World.tsx
index 3995f3c..75ab1aa 100644
--- a/src/world/World.tsx
+++ b/src/world/World.tsx
@@ -101,7 +101,6 @@ export function World({ onLoadingStateChange }: WorldProps): React.JSX.Element {
>
) : (
-
)}
{sceneMode !== "game" && spawnPlayer ? (
diff --git a/src/world/debug/TestMap.tsx b/src/world/debug/TestMap.tsx
index db9dd01..736fdb5 100644
--- a/src/world/debug/TestMap.tsx
+++ b/src/world/debug/TestMap.tsx
@@ -259,7 +259,7 @@ export function TestMap({ onOctreeReady }: TestMapProps): React.JSX.Element {
height={4}
startPos={{ x: 10, y: 0, z: -10 }}
destPos={{ x: -40, y: 0, z: 30 }}
- mapImageUrl="/map_background.png"
+ mapImageUrl="/assets/gps/map_background.png"
worldBounds={{
"minX": -166,
"maxX": 163,