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
The languages sample we have in the repo includes right-to-left (RTL) languages like Arabic. When those languages are chosen in the sample, the text is in the wrong direction (it is left-to-right instead of right-to-left).
@gowin20 is planning on updating the Esri Leaflet Vector documentation and samples to show how to use the plugin to properly display RTL languages! Thanks @gowin20 :) !
Describe the bug
The languages sample we have in the repo includes right-to-left (RTL) languages like Arabic. When those languages are chosen in the sample, the text is in the wrong direction (it is left-to-right instead of right-to-left).
Reproduction
Arabic:
Open this sample that uses the ArcGIS API for JavaScript: https://jsbin.com/qohubem/2/edit?html,output
In a separate tab, open this sample that uses Esri Leaflet Vector: https://jsbin.com/qategug/edit?html,output
Compare the two maps
Hebrew:
Same thing for Hebrew, which is another right-to-left language:
Open this sample that uses the ArcGIS API for JavaScript: https://jsbin.com/nilekem/2/edit?html,output
In a separate tab, open this sample that uses Esri Leaflet Vector: https://jsbin.com/fajowaw/edit?html,output
Compare the two maps
Logs
No response
System Info
Additional Information
I don't think this is a bug with Esri Leaflet Vector - I think we just need to document how to properly use RTL languages using
https://github.com/mapbox/mapbox-gl-rtl-text (via maplibre/maplibre-gl-js#220 (comment)). I think once we have an example of properly using that plugin, we must properly document how to use it in our languages sample as well as other places in the doc, like https://developers.arcgis.com/esri-leaflet/maps/change-the-place-label-language/
The text was updated successfully, but these errors were encountered: