-
-
Notifications
You must be signed in to change notification settings - Fork 693
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Markers in MarkersPlugin cause node markers from VirtualTourPlugin to disappear #734
Comments
Looks like a long lasting bug in the markers plugin : You should remove |
Thanks, but after those changes I still don't see the square. Code: [
VirtualTourPlugin,
{
dataMode: "client",
positionMode: "manual",
renderMode: "markers",
startNodeId: "node-1",
nodes: [
{
id: "node-1",
panorama: "./assets/pano.jpg",
name: "One",
links: [
{
nodeId: "node-2",
latitude: 0,
longitude: 0,
markerStyle: {
html: null, // needed for other marker styles
rect: [30, 30],
svgStyle: {
fill: "rgba(200, 0, 0, 0.2)",
stroke: "rgba(200, 0, 50, 0.8)",
strokeWidth: "2px",
},
},
},
],
},
{
id: "node-2",
panorama: "./assets/pano_2.jpg",
name: "Two",
links: [
{ nodeId: "node-1", latitude: "0deg", longitude: "0deg" },
],
},
],
},
], |
Well post a repro on jsfiddle. I just tested it on the example file, it works for me. |
No that's just because the URL was wrong, I fixed the demo. |
OK I figured out the problem. If you have markers defined in the marker plugin, they will cause any node markers from the virtual tour to not be shown. If this is not possible an error should be thrown. I think it would be a good idea to leave it possible though so that a reoccurring general marker could be shown as an overlay on all virtual tour images. First example of virtual tour in manual mode with markers working fine: https://jsfiddle.net/3vjhrnpy Second example where adding a circle marker causes the virtual tour markers to disappear: https://jsfiddle.net/3vjhrnpy/1/ |
That's a tricky problem because :
I think this behavior makes sense if we consider each node independant in term of configuration. What you can do is configure the same |
I will add a warning and clear the config if this case happens
|
This feature/bug fix has been released in version 4.7.1. |
Sorry for all the questions lately! Is there an official example of a virtual tour using manual
positionMode
and markersrenderMode
? I am trying to set up a small example and while I can see my node on the compass, I cannot see it in the scene.It is defined like this:
The text was updated successfully, but these errors were encountered: