|
|
@@ -140,7 +140,7 @@ export const getCoverLine = async (
|
|
|
reqs.push(
|
|
|
getSceneApi(
|
|
|
"oss",
|
|
|
- `/scene_view_data/${scene.m}/data/floorplan/floor_${floor.subgroup}.png`
|
|
|
+ `${scene.mapping ? '/' + scene.mapping : ''}/scene_view_data/${scene.m}/data/floorplan/floor_${floor.subgroup}.png`
|
|
|
)
|
|
|
.then((url) => (item.thumb = url))
|
|
|
.catch(() => {})
|
|
|
@@ -166,7 +166,7 @@ export const getHotTaggingInfos = async (scene: Scene, scale: number) => {
|
|
|
for (const hot of hots) {
|
|
|
if (!validNum(hot.position.x) || !validNum(hot.position.y)) continue;
|
|
|
reqs.push(
|
|
|
- getSceneApi("oss", `/scene_view_data/${scene.m}/user/${hot.icon}`)
|
|
|
+ getSceneApi("oss", `${scene.mapping ? '/' + scene.mapping : ''}/scene_view_data/${scene.m}/user/${hot.icon}`)
|
|
|
.then((url) =>
|
|
|
infos.push({
|
|
|
position: { x: hot.position.x * scale, y: hot.position.y * scale },
|
|
|
@@ -260,7 +260,7 @@ export const getTraceTaggingInfos = async (
|
|
|
? styleMap
|
|
|
? Promise.resolve(`./icons/${styleMap}.svg`)
|
|
|
: getSceneApi("./", `./traces/${icon}.svg`)
|
|
|
- : getSceneApi("oss", `/scene_edit_data/${scene.m}/user/${icon}`);
|
|
|
+ : getSceneApi("oss", `${scene.mapping ? '/' + scene.mapping : ''}/scene_edit_data/${scene.m}/user/${icon}`);
|
|
|
|
|
|
const name = (styleMap && getIconItem(styleMap)?.name) || "";
|
|
|
const getAttr = getIcon.then(async (url) => getTraceAttri(url, trace));
|
|
|
@@ -356,7 +356,7 @@ export const getBillTaggingInfos = async (
|
|
|
`/sdk/images/billboard/${bill.icon}.png`
|
|
|
);
|
|
|
})
|
|
|
- : getSceneApi("oss", `/scene_view_data/${scene.m}/user/${bill.icon}`);
|
|
|
+ : getSceneApi("oss", `${scene.mapping ? '/' + scene.mapping : ''}/scene_view_data/${scene.m}/user/${bill.icon}`);
|
|
|
|
|
|
const yRotate = getBillYaw(bill);
|
|
|
const name = (styleMap && getIconItem(styleMap)?.name) || "";
|