Skip to content

Commit ebae33a

Browse files
avoid createMockDiv import
1 parent 2ef903f commit ebae33a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/apply.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ License: https://raw.githubusercontent.com/openlayers/ol-mapbox-style/master/LIC
77
import {derefLayers} from '@maplibre/maplibre-gl-style-spec';
88
import Map from 'ol/Map.js';
99
import View from 'ol/View.js';
10-
import {createMockDiv} from 'ol/dom.js';
1110
import {getCenter, getTopLeft} from 'ol/extent.js';
1211
import GeoJSON from 'ol/format/GeoJSON.js';
1312
import MVT from 'ol/format/MVT.js';
@@ -629,7 +628,7 @@ function getBackgroundColor(glLayer, resolution, options, functionCache) {
629628
*/
630629
function setupBackgroundLayer(glLayer, options, functionCache) {
631630
const div = WORKER_OFFSCREEN_CANVAS
632-
? createMockDiv()
631+
? /** @type { HTMLDivElement } */ ({style: {}})
633632
: document.createElement('div');
634633
div.className = 'ol-mapbox-style-background';
635634
div.style.position = 'absolute';

0 commit comments

Comments
 (0)