Skip to content

Commit

Permalink
Merge pull request #83 from starschema/map-style-select-bug-fix
Browse files Browse the repository at this point in the history
Map style select bug fix
  • Loading branch information
budavariam authored Jan 10, 2024
2 parents fcf1fde + 9a6160b commit f59ffd0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/visual.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,12 @@ export class MapboxMap implements IVisual {
this.drawControl.updateDrawTools(this.settings.api.lasso, this.settings.api.polygon);
this.drawControl.manageHandlers(this);
this.handleContextMenu();

mapboxgl.setRTLTextPlugin(
'https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-rtl-text/v0.2.3/mapbox-gl-rtl-text.js',
null,
true // Lazy load the plugin
);
}

private removeMap() {
Expand Down Expand Up @@ -440,12 +446,6 @@ export class MapboxMap implements IVisual {
mapboxgl.accessToken = this.settings.api.accessToken;
}

mapboxgl.setRTLTextPlugin(
'https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-rtl-text/v0.2.3/mapbox-gl-rtl-text.js',
null,
true // Lazy load the plugin
);

let style = this.settings.api.style == 'custom' ? this.settings.api.styleUrl : this.settings.api.style;
if (this.mapStyle == '' || this.mapStyle != style) {

Expand Down

0 comments on commit f59ffd0

Please sign in to comment.