Add support for right-to-left scripts

Use the mapbox-gl-rtl-text plugin to support scripts that use right-to-left layout (such as Arabic or Hebrew). Note that Mapbox Studio does not yet support RTL text.

<!DOCTYPE html>
    <meta charset='utf-8' />
    <title>Add support for right-to-left scripts</title>
    <meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
    <script src=''></script>
    <link href='' rel='stylesheet' />
        body { margin:0; padding:0; }
        #map { position:absolute; top:0; bottom:0; width:100%; }

<div id='map'></div>

mapboxgl.accessToken = '<your access token here>';

var map = new mapboxgl.Map({
    container: 'map',
    style: 'mapbox://styles/mapbox/streets-v9',
    center: [44.3763, 33.2788],
    zoom: 11


Copy example