Skip to content

Commit c8a9929

Browse files
committed
use applyBackground to set background color
1 parent 1087512 commit c8a9929

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/gtt-client/init/layers.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { OrderFunction } from 'ol/render';
1111

1212
import Ordering from 'ol-ext/render/Ordering';
1313
import Mask from 'ol-ext/filter/Mask';
14-
import { applyStyle } from 'ol-mapbox-style';
14+
import { applyStyle, applyBackground } from 'ol-mapbox-style';
1515

1616
import { ILayerObject } from '../interfaces';
1717
import { updateForm } from "../helpers";
@@ -88,6 +88,7 @@ function createLayers(this: any): void {
8888
// Apply style URL if provided
8989
if ("styleUrl" in layerOptions) {
9090
applyStyle(layer as any, layerOptions.styleUrl);
91+
applyBackground(layer as any, layerOptions.styleUrl);
9192
}
9293

9394
setLayerProperties(layer, config);

0 commit comments

Comments
 (0)