RTLTextPlugin will need to be added to module options, and set in the same way as the rest of the options in plugin.client.ts:
const appConfig = useAppConfig() as ExtendedAppConfig
//@ts-ignore
mapboxgl.accessToken = appConfig._MAPBOX_CONFIG.accessToken;
//@ts-ignore
if (appConfig._MAPBOX_CONFIG.baseApiUrl) mapboxgl.baseApiUrl = appConfig._MAPBOX_CONFIG.baseApiUrl;
//@ts-ignore
if (appConfig._MAPBOX_CONFIG.workerUrl) mapboxgl.workerUrl = appConfig._MAPBOX_CONFIG.workerUrl;
//@ts-ignore
if (appConfig._MAPBOX_CONFIG.workerCount) mapboxgl.workerCount = appConfig._MAPBOX_CONFIG.workerCount;
//@ts-ignore
if (appConfig._MAPBOX_CONFIG.prewarm) mapboxgl.prewarm();
Some things to consider if anyone is interested in implementing:
Should RTLTextPlugin type in options be the same setRTLTextPlugin parameters? Or maybe just a boolean? (Lazy & callback options? Will RTL text plugin url ever be different?)
RTLTextPlugin
will need to be added to module options, and set in the same way as the rest of the options inplugin.client.ts
:Some things to consider if anyone is interested in implementing:
RTLTextPlugin
type in options be the samesetRTLTextPlugin
parameters? Or maybe just a boolean? (Lazy & callback options? Will RTL text plugin url ever be different?)useMapbox
so not entirely necessary. https://docs.mapbox.com/mapbox-gl-js/example/language-switch/