diff options
Diffstat (limited to 'src/map/core/MapView.jsx')
-rw-r--r-- | src/map/core/MapView.jsx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/core/MapView.jsx b/src/map/core/MapView.jsx index 35b3a65a..2fadf810 100644 --- a/src/map/core/MapView.jsx +++ b/src/map/core/MapView.jsx @@ -1,5 +1,6 @@ import 'maplibre-gl/dist/maplibre-gl.css'; import maplibregl from 'maplibre-gl'; +import mapboxglRtlTextUrl from '@mapbox/mapbox-gl-rtl-text/mapbox-gl-rtl-text.min.js?url' import React, { useRef, useLayoutEffect, useEffect, useState, } from 'react'; @@ -14,6 +15,8 @@ element.style.width = '100%'; element.style.height = '100%'; element.style.boxSizing = 'initial'; +maplibregl.setRTLTextPlugin(mapboxglRtlTextUrl); + export const map = new maplibregl.Map({ container: element, attributionControl: false, |