Skip to content

Commit

Permalink
Add RTL plugin (#76)
Browse files Browse the repository at this point in the history
* Add RTL plugin
  • Loading branch information
wipfli authored Oct 9, 2024
1 parent 9206bd2 commit 89c19f9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions components/MaplibreMap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,12 @@ const props = defineProps<{
}>();
onMounted(() => {
if (maplibregl.getRTLTextPluginStatus() === "unavailable") {
maplibregl.setRTLTextPlugin(
"https://unpkg.com/@mapbox/[email protected]/mapbox-gl-rtl-text.js",
false,
);
}
map = new maplibregl.Map({
container: mapRef.value,
style: style(props.theme, props.highlightLayer),
Expand Down

0 comments on commit 89c19f9

Please sign in to comment.