mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-28 17:21:18 +01:00
Merge pull request #475 from pathmapper/rtl_blob
Set MIME type for RTL blob
This commit is contained in:
commit
2565a89474
1 changed files with 2 additions and 2 deletions
|
@ -3,9 +3,9 @@ import MapboxGl from 'mapbox-gl'
|
|||
// Load mapbox-gl-rtl-text using object urls without needing http://localhost for AJAX.
|
||||
const data = require("raw-loader?mimetype=text/javascript!@mapbox/mapbox-gl-rtl-text/mapbox-gl-rtl-text.js");
|
||||
|
||||
const blob = new window.Blob([data]);
|
||||
const objectUrl = window.URL.createObjectURL(blob, {
|
||||
const blob = new window.Blob([data], {
|
||||
type: "text/javascript"
|
||||
});
|
||||
const objectUrl = window.URL.createObjectURL(blob);
|
||||
|
||||
MapboxGl.setRTLTextPlugin(objectUrl);
|
||||
|
|
Loading…
Reference in a new issue