From f3dff956e5a9ac784655405732511589497ee1a7 Mon Sep 17 00:00:00 2001 From: Sandi Barr <2250413+sandikbarr@users.noreply.github.com> Date: Sat, 3 Jun 2023 06:49:10 -0500 Subject: [PATCH] fix: set baseApiUrl rather than assign config.API_URL which is now a getter (#395) --- libs/ngx-mapbox-gl/src/lib/map/map.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ngx-mapbox-gl/src/lib/map/map.service.ts b/libs/ngx-mapbox-gl/src/lib/map/map.service.ts index 342a76f8..75318d3f 100644 --- a/libs/ngx-mapbox-gl/src/lib/map/map.service.ts +++ b/libs/ngx-mapbox-gl/src/lib/map/map.service.ts @@ -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),