Skip to content

Commit

Permalink
fix(map): customMapboxApiUrl now correctly set API_URL
Browse files Browse the repository at this point in the history
  • Loading branch information
Wykks committed Nov 1, 2017
1 parent f9e30c7 commit ef295a3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/lib/map/map.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ export class MapService {
return this.zone.runOutsideAngular(() => {
// Workaround rollup issue
this.assign(MapboxGl, 'accessToken', options.accessToken || this.MAPBOX_API_KEY);
this.assign(MapboxGl, 'config.customMapboxApiUrl', options.customMapboxApiUrl);
if (options.customMapboxApiUrl) {
this.assign(MapboxGl, 'config.API_URL', options.customMapboxApiUrl);
}
this.createMap(options.mapOptions);
this.hookEvents(options.mapEvents);
this.mapEvents = options.mapEvents;
Expand Down

0 comments on commit ef295a3

Please sign in to comment.