diff --git a/website/public/scripts/map.js b/website/public/scripts/map.js index 0528614..573a079 100644 --- a/website/public/scripts/map.js +++ b/website/public/scripts/map.js @@ -17,6 +17,12 @@ function initMap() { document.getElementById('mapbg-image').style.opacity = '0.5' + // RTL support, optional + maplibregl.setRTLTextPlugin( + 'https://unpkg.com/@mapbox/mapbox-gl-rtl-text@0.3.0/dist/mapbox-gl-rtl-text.js', + true, // Lazy load the plugin + ) + const map = new maplibregl.Map({ style: 'https://tiles.openfreemap.org/styles/liberty', center: berlin.center,