Skip to content

Commit

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

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

// RTL support, optional
maplibregl.setRTLTextPlugin(
'https://unpkg.com/@mapbox/[email protected]/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,
Expand Down

0 comments on commit b284178

Please sign in to comment.