mirror of
https://github.com/maputnik/editor.git
synced 2026-08-25 06:27:25 +00:00
Initial work to convert from Mapbox GL v1.13 to MapLibre v2.4.0.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import MapboxGl from 'mapbox-gl'
|
||||
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");
|
||||
@@ -8,4 +8,4 @@ const blob = new window.Blob([data], {
|
||||
});
|
||||
const objectUrl = window.URL.createObjectURL(blob);
|
||||
|
||||
MapboxGl.setRTLTextPlugin(objectUrl);
|
||||
MapLibreGl.setRTLTextPlugin(objectUrl, () => {});
|
||||
|
||||
Reference in New Issue
Block a user