Skip to content

Commit

Permalink
Update map.service.ts (Wykks#408)
Browse files Browse the repository at this point in the history
fixing es-build angular 16 build with error
```
Cannot assign to import "baseApiUrl"

    node_modules/ngx-mapbox-gl/fesm2022/ngx-mapbox-gl.mjs:34:25:
      34 │                 MapboxGl.baseApiUrl = options.customMapboxApiUrl;
         ╵                          ~~~~~~~~~~

  Imports are immutable in JavaScript. To modify the value of this import
```
related to evanw/esbuild#891,



fixes:
Wykks#403
Wykks#407
  • Loading branch information
harellevy authored and denisyilmaz committed Sep 10, 2024
1 parent 58f540a commit 67a60e6
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 @@ -6,7 +6,7 @@ import {
NgZone,
Optional,
} from '@angular/core';
import * as MapboxGl from 'mapbox-gl';
import MapboxGl from 'mapbox-gl';
import { AsyncSubject, Observable, Subscription } from 'rxjs';
import { first } from 'rxjs/operators';
import {
Expand Down

0 comments on commit 67a60e6

Please sign in to comment.