Skip to content

Commit 11c6a39

Browse files
committed
add RTL plugin
1 parent 0c20012 commit 11c6a39

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

website/public/scripts/map.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ function initMap() {
1717

1818
document.getElementById('mapbg-image').style.opacity = '0.5'
1919

20+
maplibregl.setRTLTextPlugin(
21+
'https://unpkg.com/@mapbox/mapbox-gl-rtl-text/mapbox-gl-rtl-text.min.js',
22+
true, // Lazy load the plugin
23+
)
24+
2025
const map = new maplibregl.Map({
2126
style: 'https://tiles.openfreemap.org/styles/liberty',
2227
center: berlin.center,

0 commit comments

Comments
 (0)