Skip to content

Commit

Permalink
add RTL plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperknot committed Sep 24, 2024
1 parent 0c20012 commit 11c6a39
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions website/public/scripts/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ function initMap() {

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

maplibregl.setRTLTextPlugin(
'https://unpkg.com/@mapbox/mapbox-gl-rtl-text/mapbox-gl-rtl-text.min.js',
true, // Lazy load the plugin
)

const map = new maplibregl.Map({
style: 'https://tiles.openfreemap.org/styles/liberty',
center: berlin.center,
Expand Down

0 comments on commit 11c6a39

Please sign in to comment.