mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-21 14:02:15 +00:00
add RTL plugin
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user