forked from MapComplete/MapComplete
Move ShowDataLayer-implementation to a separate class for nodejs compatibility
This commit is contained in:
parent
7a76109d61
commit
f4a965eacf
5 changed files with 364 additions and 334 deletions
|
@ -12,6 +12,8 @@ import 'leaflet-polylineoffset'
|
|||
import {SimpleMapScreenshoter} from "leaflet-simple-map-screenshoter";
|
||||
import BackgroundMapSwitch from "../BigComponents/BackgroundMapSwitch";
|
||||
import AvailableBaseLayersImplementation from "../../Logic/Actors/AvailableBaseLayersImplementation";
|
||||
import ShowDataLayer from "../ShowDataLayer/ShowDataLayer";
|
||||
import ShowDataLayerImplementation from "../ShowDataLayer/ShowDataLayerImplementation";
|
||||
|
||||
export default class MinimapImplementation extends BaseUIElement implements MinimapObj {
|
||||
private static _nextId = 0;
|
||||
|
@ -50,6 +52,7 @@ export default class MinimapImplementation extends BaseUIElement implements Mini
|
|||
public static initialize() {
|
||||
AvailableBaseLayers.implement(new AvailableBaseLayersImplementation())
|
||||
Minimap.createMiniMap = options => new MinimapImplementation(options)
|
||||
ShowDataLayer.actualContstructor = options => new ShowDataLayerImplementation(options)
|
||||
}
|
||||
|
||||
public installBounds(factor: number | BBox, showRange?: boolean) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue