This ensures map features remain visible in the MapLibre demo even when properties.assets is empty. Made-with: Cursor
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user