Skip to content
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

Map in VirtualTour doesn't work #1357

Closed
Rusachok opened this issue Jul 6, 2024 · 4 comments
Closed

Map in VirtualTour doesn't work #1357

Rusachok opened this issue Jul 6, 2024 · 4 comments
Labels
Milestone

Comments

@Rusachok
Copy link

Rusachok commented Jul 6, 2024

Describe the bug

I want to use floor map for my virtual tour. So my plugins

          plugins: [
              [MapPlugin],
              [GalleryPlugin, {
                  thumbnailSize: { width: 100, height: 100 },
                  visibleOnLoad: true,
              }],
              [VirtualTourPlugin, {
                  positionMode: 'manual',
                  renderMode: '2d',
                  map: {
                      imageUrl: '{% static 'img/empty_plan.jpg' %}',
                  },
              }],
          ],

And in virtualTour.setNodes I use

map: { x: 500, y: 815 },

I got in Console error in "MapComponent.ts:554"

Uncaught DOMException: Failed to execute 'addColorStop' on 'CanvasGradient': The value provided ('rgba(8E,0)') could not be parsed as a color.
    at MapComponent.render (http://127.0.0.1:8000/static/vendor/photo-sphere-viewer/map-plugin/index.module.js:754:14)
    at renderLoop (http://127.0.0.1:8000/static/vendor/photo-sphere-viewer/map-plugin/index.module.js:390:14)

Can you give examples of how to set a room plan and points on it?

Online demo URL

No response

Photo Sphere Viewer version

5.8.2

Plugins loaded

No response

OS & browser

Win, chrome

Additional context

No response

@Rusachok Rusachok added the bug label Jul 6, 2024
@mistic100
Copy link
Owner

Please create an online demo showing the error.

@mistic100 mistic100 added the awaiting answer Additional information is required. Will be closed after 14 days. label Jul 6, 2024
@Rusachok
Copy link
Author

Rusachok commented Jul 7, 2024

@mistic100
Copy link
Owner

mistic100 commented Jul 7, 2024

I understood the problem, it will be fixed.

In the meantime you can define the plugin like this instead

[MapPlugin, {}] // notice the empty config object

@mistic100 mistic100 added this to the 5.8.3 milestone Jul 7, 2024
@mistic100 mistic100 removed the awaiting answer Additional information is required. Will be closed after 14 days. label Jul 7, 2024
Copy link

This feature/bug fix has been released in version 5.8.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants