-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
This adds support for RTL languages (Arabic and Hebrew) in the basemaps. Without this library the RTL languages appear backwards. Co-authored-by: Elastic Machine <[email protected]>
- Loading branch information
1 parent
c076499
commit 8ff26e3
Showing
3 changed files
with
8 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,7 @@ import { getGlyphUrl, isRetina } from '../../../meta'; | |
import { DECIMAL_DEGREES_PRECISION, ZOOM_PRECISION } from '../../../../common/constants'; | ||
import mapboxgl from 'mapbox-gl/dist/mapbox-gl-csp'; | ||
import mbWorkerUrl from '!!file-loader!mapbox-gl/dist/mapbox-gl-csp-worker'; | ||
import mbRtlPlugin from '!!file-loader!@mapbox/mapbox-gl-rtl-text/mapbox-gl-rtl-text.min.js'; | ||
import chrome from 'ui/chrome'; | ||
import { spritesheet } from '@elastic/maki'; | ||
import sprites1 from '@elastic/maki/dist/[email protected]'; | ||
|
@@ -24,6 +25,7 @@ import { DrawControl } from './draw_control'; | |
import { TooltipControl } from './tooltip_control'; | ||
|
||
mapboxgl.workerUrl = mbWorkerUrl; | ||
mapboxgl.setRTLTextPlugin(mbRtlPlugin); | ||
|
||
export class MBMapContainer extends React.Component { | ||
state = { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2712,6 +2712,11 @@ | |
lodash.isequal "^4.2.0" | ||
xtend "^4.0.1" | ||
|
||
"@mapbox/[email protected]": | ||
version "0.2.3" | ||
resolved "https://registry.yarnpkg.com/@mapbox/mapbox-gl-rtl-text/-/mapbox-gl-rtl-text-0.2.3.tgz#a26ecfb3f0061456d93ee8570dd9587d226ea8bd" | ||
integrity sha512-RaCYfnxULUUUxNwcUimV9C/o2295ktTyLEUzD/+VWkqXqvaVfFcZ5slytGzb2Sd/Jj4MlbxD0DCZbfa6CzcmMw== | ||
|
||
"@mapbox/mapbox-gl-supported@^1.4.0": | ||
version "1.4.0" | ||
resolved "https://registry.yarnpkg.com/@mapbox/mapbox-gl-supported/-/mapbox-gl-supported-1.4.0.tgz#36946b22944fe2cfa43cfafd5ef36fdb54a069e4" | ||
|