Skip to content

Commit

Permalink
fix(map): add an additional setStyle() call to prevent map loading is…
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven Röttering committed Dec 17, 2018
1 parent 90a6dcf commit d4d7724
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions projects/ngx-mapbox-gl/src/lib/map/map.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,7 @@ export class MapService {
}
});
this.mapInstance = new MapboxGl.Map(options);
this.mapInstance.setStyle(options.style!);
const subChanges = this.zone.onMicrotaskEmpty
.subscribe(() => this.applyChanges());
if (this.MglResizeEventEmitter) {
Expand Down

0 comments on commit d4d7724

Please sign in to comment.