You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Map displays as it does when opened over http:// e.g. https://jsbin.com/waxofufeza/edit, opened as a file:// in Firefox or in any browser when changing maplibre-gl dependency to 3.6.2.
Load event logged in console.
Actual Behavior
Map does not display and tiles are requested in network panel of browser developer tools.
Load event not logged in console.
No error events logged in console.
The text was updated successfully, but these errors were encountered:
Strange... Seems like this was introduced as part of pre-release 1 of 4.0, I'm not sure I can think of something that could've caused this...
I did some major changes there, so I'm not sure I'd know where to start looking...
With a "file" scheme, data.origin is "file://" and location.origin is "null" or vice versa
So for example the tiles will get loaded if you change this condition to: if (data.origin !== 'file://' && location.origin !== 'file://' && data.origin !== location.origin) {
I'm not sure about the purpose of this line so can't tell if this particular solution is safe.
But at least when served from localhost, everything works ok too.
maplibre-gl-js version: 4.0.0 (works in 3.6.2)
browser: Chrome and Safari (works in Firefox)
Steps to Trigger Behavior
Repro demonstration
Expected Behavior
Actual Behavior
The text was updated successfully, but these errors were encountered: