Skip to content

Plotly tries to access maplibre-gl.css #7139

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

Closed
secretwpn opened this issue Sep 3, 2024 · 2 comments · Fixed by #7140
Closed

Plotly tries to access maplibre-gl.css #7139

secretwpn opened this issue Sep 3, 2024 · 2 comments · Fixed by #7140
Assignees
Labels
bug something broken P1 needed for current cycle

Comments

@secretwpn
Copy link

secretwpn commented Sep 3, 2024

Hi!

It looks like starting from 2.35.0 Plotly tries to access maplibre-gl.css - in my case - via https://unpkg.com/maplibre-gl@4.6.0/dist/maplibre-gl.css

I am not using any map traces in my app - just scattergl - so I did not expect to be affected by migration to maplibre. To make matters worse my app is running in offline environment and thus requests to upkg.com are failing, leaving console in red.

Should I add some maplibre related stylesheets or bits of configuration to my app manually, or will this be ironed out in future versions?

Thanks!

@archmoj
Copy link
Contributor

archmoj commented Sep 3, 2024

@birkskyum Would you please address this issue in a PR?

@gvwilson gvwilson added bug something broken P1 needed for current cycle labels Sep 3, 2024
@rbell517
Copy link

rbell517 commented Sep 3, 2024

I am also getting console errors from our CSP policy with the strict dist from this maplibre CSS file. I set style-src: 'self' 'unsafe-inline' in my CSP header. It looks like the associated PR #7140 will address this if anyone else has the same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken P1 needed for current cycle
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants