Open vladkasianenko opened 1 year ago
I believe this issue setting the accessToken is in fact a duplicate of #373 and that is was resolved with PR #374
I am however seeing a very similar error when attempting to set the customMapboxApiUrl on the map component.
ngx-mapbox-gl.mjs:767 Uncaught TypeError: Cannot set property config of [object Module] which has only a getter
at MapService.assign (ngx-mapbox-gl.mjs:767:1)
at ngx-mapbox-gl.mjs:34:1
at Object.next (Subscriber.js:123:1)
at Subscriber._next (Subscriber.js:63:1)
at Subscriber.next (Subscriber.js:34:1)
at throwIfEmpty.js:10:1
at OperatorSubscriber._this._next (OperatorSubscriber.js:11:1)
at Subscriber.next (Subscriber.js:34:1)
at take.js:12:1
at OperatorSubscriber._this._next (OperatorSubscriber.js:11:1)
I see that the Mapbox config.API_URL property has been changed to be a getter, and they have a baseApiUrl
option that can be set. I will submit a PR.
Possible duplicate of #373.
Console output:
ENV:
I use this code in my
shared.module.ts
: