mirror of
https://github.com/maputnik/editor.git
synced 2026-09-02 02:17:26 +00:00
3727c9ad5e
Fixes #814 * fix: remove outdated references to mapbox * docs: fix references in readme * chore: fix mapbox references in tests * chore: fix mapbox references in stories, webpack config * chore: remove empty array
12 lines
360 B
JavaScript
12 lines
360 B
JavaScript
import MapLibreGl from "maplibre-gl"
|
|
import {readFileSync} from 'fs'
|
|
|
|
const data = readFileSync(__dirname+"/../../node_modules/@mapbox/mapbox-gl-rtl-text/mapbox-gl-rtl-text.js", "utf8");
|
|
|
|
const blob = new window.Blob([data], {
|
|
type: "text/javascript"
|
|
});
|
|
const objectUrl = window.URL.createObjectURL(blob);
|
|
|
|
MapLibreGl.setRTLTextPlugin(objectUrl, () => {});
|