diff --git a/projects/ngx-mapbox-gl/src/lib/map/map.service.ts b/projects/ngx-mapbox-gl/src/lib/map/map.service.ts index 8ae110ab5..e4aa15dfe 100644 --- a/projects/ngx-mapbox-gl/src/lib/map/map.service.ts +++ b/projects/ngx-mapbox-gl/src/lib/map/map.service.ts @@ -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) {