We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1087512 commit c8a9929Copy full SHA for c8a9929
src/components/gtt-client/init/layers.ts
@@ -11,7 +11,7 @@ import { OrderFunction } from 'ol/render';
11
12
import Ordering from 'ol-ext/render/Ordering';
13
import Mask from 'ol-ext/filter/Mask';
14
-import { applyStyle } from 'ol-mapbox-style';
+import { applyStyle, applyBackground } from 'ol-mapbox-style';
15
16
import { ILayerObject } from '../interfaces';
17
import { updateForm } from "../helpers";
@@ -88,6 +88,7 @@ function createLayers(this: any): void {
88
// Apply style URL if provided
89
if ("styleUrl" in layerOptions) {
90
applyStyle(layer as any, layerOptions.styleUrl);
91
+ applyBackground(layer as any, layerOptions.styleUrl);
92
}
93
94
setLayerProperties(layer, config);
0 commit comments