Add maplibre RTL text plugin to the demonstration
diff --git a/public/demo.html b/public/demo.html
index b5f2334..a424044 100644
--- a/public/demo.html
+++ b/public/demo.html
@@ -55,6 +55,15 @@
<script src="https://buttons.github.io/buttons.js" crossorigin="anonymous"></script>
<script>
+ // Load the right-to-left plugin if necessary.
+ if (maplibregl.getRTLTextPluginStatus() === 'unavailable') {
+ maplibregl.setRTLTextPlugin(
+ 'https://unpkg.com/@mapbox/mapbox-gl-rtl-text@0.2.3/mapbox-gl-rtl-text.min.js',
+ null,
+ true
+ );
+ }
+
// Initialize the map
var map = new mapboxgl.Map({
container: 'map',