Render cube placeholder when feature has no linked assets.
CI / test (push) Successful in 4s

This ensures map features remain visible in the MapLibre demo even when properties.assets is empty.

Made-with: Cursor
This commit is contained in:
2026-03-02 22:55:39 +00:00
parent e3ccd9d252
commit c70d05b583
+2
View File
@@ -528,6 +528,8 @@ async function refreshFeatures() {
const first = preferred3D || assets[0]; const first = preferred3D || assets[0];
if (first) { if (first) {
await addObjectMeshFromAsset(feature.id, lng, lat, first, cycleID); await addObjectMeshFromAsset(feature.id, lng, lat, first, cycleID);
} else {
addFallbackMesh(feature.id, lng, lat, true, "3d");
} }
if (ownFeatureIDs.has(feature.id) && accessToken) { if (ownFeatureIDs.has(feature.id) && accessToken) {
addOwnFeatureMarker(feature.id, lng, lat); addOwnFeatureMarker(feature.id, lng, lat);