Skip to content

Commit

Permalink
fix: set baseApiUrl rather than assign config.API_URL which is now a …
Browse files Browse the repository at this point in the history
…getter
  • Loading branch information
sandikbarr committed Mar 27, 2023
1 parent a0d968a commit a8c9426
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/ngx-mapbox-gl/src/lib/map/map.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export class MapService {
// options.accessToken || this.MAPBOX_API_KEY
// );
if (options.customMapboxApiUrl) {
this.assign(MapboxGl, 'config.API_URL', options.customMapboxApiUrl);
(MapboxGl.baseApiUrl as string) = options.customMapboxApiUrl;
}
this.createMap({
...(options.mapOptions as MapboxGl.MapboxOptions),
Expand Down

0 comments on commit a8c9426

Please sign in to comment.