diff --git a/dist/components/MapLibreMap/lib/MapLibreGlWrapper.d.ts b/dist/components/MapLibreMap/lib/MapLibreGlWrapper.d.ts index 042826678..6d2e927ae 100644 --- a/dist/components/MapLibreMap/lib/MapLibreGlWrapper.d.ts +++ b/dist/components/MapLibreMap/lib/MapLibreGlWrapper.d.ts @@ -1,5 +1,16 @@ import { IControl, MapOptions as MapOptionsType } from "!maplibre-gl"; import { Map as MapType } from "maplibre-gl"; +import maplibreGl from "maplibre-gl"; + +maplibreGl.setRTLTextPlugin( + 'https://unpkg.com/@mapbox/mapbox-gl-rtl-text@0.2.3/mapbox-gl-rtl-text.min.js', + (res) => { + console.log(res); + }, + true // Lazy load the plugin +); + + declare type EventArgArray = [string, string | Function, Function?]; declare type LayerState = { id: string; diff --git a/src/components/MapLibreMap/lib/MapLibreGlWrapper.ts b/src/components/MapLibreMap/lib/MapLibreGlWrapper.ts index a346ab4aa..18e7cd6b8 100644 --- a/src/components/MapLibreMap/lib/MapLibreGlWrapper.ts +++ b/src/components/MapLibreMap/lib/MapLibreGlWrapper.ts @@ -12,6 +12,16 @@ import { StyleImageMetadata, } from 'maplibre-gl'; import { Map as MapType, Style } from 'maplibre-gl'; +import maplibregl from 'maplibre-gl'; + +maplibregl.setRTLTextPlugin( + 'https://unpkg.com/@mapbox/mapbox-gl-rtl-text@0.2.3/mapbox-gl-rtl-text.min.js', + (res) => { + console.log(res); + }, + true // Lazy load the plugin +); + type WrapperEventArgArray = [string, (arg0: unknown) => void]; type EventArgArray = [