Posts by zhangliang
-
-
-
I am now displaying a small map of the depth map by setting the layer. I achieve this by using JavaScript to call `addLayer`. However, I have encountered an issue. After adding the layer using `addLayer`, the layer tag already exists and can be printed, but it does not display, and any operations on it are ineffective. If I preset an empty layer tag with the same name as the one dynamically added and then modify its properties, it will display correctly. However, I cannot do this because the UUIDs (1, 2, 4, 9, 11, 12, etc.) provided by the algorithm engineer are non-consecutive. If I were to preset 100 empty tags, it would slow down the startup speed by about one second.
The following is my code.
krpano.call(`addlayer(spot${item.uuid *1 +1})`)
krpano.set(`layer[spot${item.uuid *1 + 1}].style`, 'spot');
krpano.set(`layer[spot${item.uuid *1 + 1}].x`, `${width/2}`);
krpano.set(`layer[spot${item.uuid *1 + 1}].y`, `${height/2}`);
krpano.set(`layer[spot${item.uuid *1 + 1}].ox`, item.puck.x * 33.33);
krpano.set(`layer[spot${item.uuid *1 + 1}].oy`, item.puck.y * -33.33);
krpano.set(`layer[spot${item.uuid *1 + 1}].zorder`, 1);
krpano.set(`layer[spot${item.uuid *1 + 1}].visible`, true);
krpano.set(`layer[spot${item.uuid *1 + 1}].onclick`, `tour3d_loadscene(name-${item.uuid})`); -
-
-
To address the issue of model breakage, I used `rendermode=3dmodel` and `background=pano` attributes, which successfully resolved the model breakage. However, a new problem arose: the hotspots outside the cube are not visible from within the cube. Is there any attribute that can allow me to see the hotspots outside the cube from within?
-
-
I have a requirement to measure continuous line lengths or polygon areas on a web browser and end the measurement by right-clicking the mouse when needed. This operation provides a good user experience. However, whenever I right-click, the krpano context menu pops up. Even if I try to prevent it from appearing by monitoring and controlling the DOM interface of the webpage, it still executes. I would like to disable this behavior. Is there a way to achieve that?