Maps: Serve plugin assets from internal static server #1391 #1393

This commit is contained in:
Haim Kastner 2021-07-01 12:12:47 +03:00 committed by GitHub
parent c69dd1a32d
commit f8ec8ba99e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

File diff suppressed because one or more lines are too long

View file

@ -275,7 +275,7 @@ export default {
// In case of facing RTL language on the map, this plugin will be fetched (only by lazy!) and will set RTL properly support.
// See mapbox documentation here https://docs.mapbox.com/mapbox-gl-js/example/mapbox-gl-rtl-text/
mapboxgl.setRTLTextPlugin(
'https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-rtl-text/v0.2.3/mapbox-gl-rtl-text.js',
'/static/plugins/mapbox-gl-rtl-text/v0.2.3/mapbox-gl-rtl-text.js',
null,
true // Lazy load the plugin
);