Remove obsolete method

This commit is contained in:
Pieter Vander Vennet 2024-02-21 17:18:09 +01:00
parent 437f1abd4e
commit 1f9cab7134
2 changed files with 1 additions and 17 deletions

View file

@ -144,23 +144,15 @@ class SingleBackgroundHandler {
}
export default class RasterLayerHandler {
private _map: Store<MLMap>
private _background: UIEventSource<RasterLayerPolygon | undefined>
private _singleLayerHandlers: Record<string, SingleBackgroundHandler> = {}
constructor(map: Store<MLMap>, background: UIEventSource<RasterLayerPolygon | undefined>) {
this._map = map
this._background = background
background.addCallbackAndRunD((l) => {
const key = l.properties.id
if (!this._singleLayerHandlers[key]) {
this._singleLayerHandlers[key] = new SingleBackgroundHandler(map, l, background)
}
})
map.addCallback((map) => {
map.on("load", () => this.setBackground())
this.setBackground()
})
}
public static prepareWmsSource(layer: RasterLayerProperties): SourceSpecification {
@ -203,9 +195,4 @@ export default class RasterLayerHandler {
return url
}
/**
* Performs all necessary updates
*/
public setBackground() {}
}