L.esri.Vector.setRTLTextPlugin

This method of Esri Leaflet Vector allows you to provide a plugin that configures settings for right-to-left languages, such as Arabic and Hebrew. The most commonly passed option is the Mapbox GL RTL Text plugin, which Esri Leaflet Vector is compatible with since it uses Maplibre GL JS.

Method

MethodDescription
L.esri.Vector.setRTLTextPlugin(<String> url, <ErrorCallback> callback, <Boolean> deferred)

url : The URL of a library compatible with MapLibre GL JS, such as Mapbox GL RTL Text, that configures RTL language support.

Example

1
2
3
4
5
6
const basemap = L.esri.Vector.vectorBasemapLayer('arcgis/outdoor',{
    token:accessToken,
    language:'ar' // Arabic
}).addTo(map);

L.esri.Vector.setRTLTextPlugin('https://unpkg.com/@mapbox/mapbox-gl-rtl-text@0.2.3/mapbox-gl-rtl-text.js');

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close