Skip to content

Commit

Permalink
Update maplibregl RTL text plugin initialization in main.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Youssef-Harby committed Apr 11, 2024
1 parent c7b6e73 commit 23d17f1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions example/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ import maplibregl from "maplibre-gl";
// Set the RTL text plugin once at the application level
maplibregl.setRTLTextPlugin(
"https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-rtl-text/v0.2.3/mapbox-gl-rtl-text.js",
null, // Set the second argument to `false` to avoid throwing an error if called multiple times
true // This enables the plugin to be lazy loaded when needed
true
);

const app = new App({
Expand Down

0 comments on commit 23d17f1

Please sign in to comment.