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
Could this be a data issue (mbtiles some how not storing the labels correctly) or may be I'm using the plugin incorrectly ? Any other dependency to display the Arabic text correctly ? Any way to know what is the source of the issue ?
Hi @nouryf I'm so sorry it took me so long to respond! I missed the notification for your comment when it came in. 😓
I downloaded the morocoo.mbtiles file, and the thing that jumped out at me is that the names in those files are trilingual: English/Berber(I think?)/Arabic. My guess is you're using a font that doesn't have glyphs for Berber, so it doesn't show up in the labels. However (and I'm guessing a lot), control characters from the Berber text could still be affecting the rest of the display. The "Anfa/أنفا" case itself looks formatted as I'd expect.
Hi @ChrisLoer, thanks for your response. Since I open this issue, things progressed in the direction you thought. It was a font issue. The used font did not seem to have all the Arabic glyphs and the displayed Arabic text has missing characters in it. This is now logged under a different project openmaptiles/openmaptiles#194
So this is not a Mapbox GL js issue. This ticket can be closed.
I had the same issue with Mapbox using streamlit I don't know why but the name of cities' streets ...everything in Arabic is from left to right.
I think I use pydeck package too, but it's not responsible for the map style.
Here is my code:
Activity
ChrisLoer commentedon Jun 8, 2017
Hi @nouryf I'm so sorry it took me so long to respond! I missed the notification for your comment when it came in. 😓
I downloaded the morocoo.mbtiles file, and the thing that jumped out at me is that the names in those files are trilingual: English/Berber(I think?)/Arabic. My guess is you're using a font that doesn't have glyphs for Berber, so it doesn't show up in the labels. However (and I'm guessing a lot), control characters from the Berber text could still be affecting the rest of the display. The "Anfa/أنفا" case itself looks formatted as I'd expect.
nouryf commentedon Jun 8, 2017
Hi @ChrisLoer, thanks for your response. Since I open this issue, things progressed in the direction you thought. It was a font issue. The used font did not seem to have all the Arabic glyphs and the displayed Arabic text has missing characters in it. This is now logged under a different project openmaptiles/openmaptiles#194
So this is not a Mapbox GL js issue. This ticket can be closed.
ELFALLAH02 commentedon Dec 2, 2022
I had the same issue with Mapbox using streamlit I don't know why but the name of cities' streets ...everything in Arabic is from left to right.
I think I use pydeck package too, but it's not responsible for the map style.
Here is my code:
Output

nouryf commentedon Dec 4, 2022
Try adding the plugin that support right to left languages like Arabic: