setRTLTextPlugin()
setRTLTextPlugin(
pluginURL:string,lazy:boolean):Promise<void>
Defined in: src/index.ts:69
Sets the map's RTL text plugin. Necessary for supporting the Arabic and Hebrew languages, which are written right-to-left.
Parameters
| Parameter | Type | Description |
|---|---|---|
pluginURL | string | URL pointing to the RTL text plugin source. |
lazy | boolean | If set to true, mapmetrics will defer loading the plugin until rtl text is encountered, rtl text will then be rendered only after the plugin finishes loading. |
Returns
Promise<void>
Example
ts
setRTLTextPlugin('https://cdn.mapmetrics-atlas.net/basemaps-assets/js/mapmetrics-gl-rtl-text.min.js', false);