-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
0.45.0 broke setRTLTextPlugin on local source #6719
Comments
Likely due to #6170. If you pass an absolute local URL (e.g. |
cc @ChrisLoer |
Yes, changing it to
makes it work, including IE11. Also, it'd be quite nice to have some kind of error thrown, so at least we receive reports that IE11 users are not seeing anything on the maps. |
Thanks for the report @hyperknot, and sorry for the difficulty tracing down the source of the problem.
I'll try to get a fix in soon for handling relative URLs. I still have to investigate what was happening on IE 11, I would have expected that the plugin would just fail to load the same way as in Chrome. |
@ChrisLoer, thanks for the callback option! |
I would use the URL API to convert relative to absolute URLs, but apparently that's not supported by IE 11. @ryanhamley, do you know a canonical way to absolutify URLs? |
I think |
|
All the approaches I know of are some variation on what John posted or using |
mapbox-gl-js version: 0.45.0
browser: various
Steps to Trigger Behavior
mapbox-gl-rtl-text.js
next to itnode serve
orpython3 -m http.server
Expected Behavior
Should work.
Actual Behavior
OK, so this wasn't an easy one to diagnose. In IE 11 all vector layer renderings were broken. Not just text, every layer, as in nothing was displayed at all, only raster layers. Reverting to 0.44.2 makes everything work.
It turns out, the culprit is 0.45.0's
setRTLTextPlugin()
, but only when used with local sources. With https CDN it works well.The text was updated successfully, but these errors were encountered: